Skip to content

intdiv() called by a run-time name with a spread pack throws "Call to undefined function intdiv()". #638

Closed

Description

@blacktrs

Summary

intdiv() called by a run-time name with a spread pack throws "Call to undefined function intdiv()".

Repro

<?php
function callI(string $f, int ...$a): mixed { return $f(...$a); }
$n = 'intdiv';
var_dump(callI($n, 9, 2));

Expected (php)

int(4)

Actual (manticore 4ed3b33f, Darwin arm64)


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

Tracking

Known-bug repro: tests/aot/repro/wrong/dyn_spread_intdiv_by_name.php — bash tests/aot/xfail.sh -k dyn_spread_intdiv_by_name 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 Nov 10, 2026
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