Skip to content

Calling a string that names a codegen builtin through $cb(...$args) crashes the compiler: Call to a member function accept() on null #411

Closed

Description

@blacktrs

Summary

Calling a string that names a codegen builtin through $cb(...$args) crashes the compiler: Call to a member function accept() on null.

Repro

<?php
$cb = 'str_repeat';
$args = ['ab', 3];
echo $cb(...$args), "\n";

Expected (php)

ababab

Actual (manticore 2cd6968a, Darwin arm64)

compile failed (rc=65):
compile failed: argument unpacking into str_repeat() is not supported: it is a codegen builtin with no signature to expand the pack against (line 5)
compile: front-end (parse/typeck/IR) returned null (rc=65)

Tracking

Known-bug repro: tests/aot/repro/crash/spread_call_through_builtin_name_string.php — bash tests/aot/xfail.sh -k spread_call_through_builtin_name_string 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
    crash
    on Oct 23, 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

    bugcrash

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions