Skip to content

use function name as alias is not resolved: calling the alias throws "Call to undefined function" #180

Closed

Description

@blacktrs

Summary

use function name as alias is not resolved: calling the alias throws "Call to undefined function".

Repro

<?php
namespace App;

use function strtoupper as up;

echo up('abc'), "\n";

Expected (php)

ABC

Actual (manticore 31f6f652, Darwin arm64)


[exit code 255]
PHP Fatal error:  Uncaught Error: Call to undefined function up()

Tracking

Known-bug repro: tests/aot/repro/wrong/use_function_alias_unknown.php — bash tests/aot/xfail.sh -k use_function_alias_unknown reports XFAIL while this is open and XPASS once it is fixed; then move the repro into tests/aot/cases/ and close this issue.

Activity

  1. added
    bug
    wrong-answer
    on Oct 11, 2026
  2. added 3 commits that reference this issue on Oct 12, 2026
    d71ea83
    d8c0465
    7f2be54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugwrong-answer

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions