You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Stdlib: array_combine() with enum case keys — Error not backed int keys (ext/standard/array.c) #5538
array_combine([E::A, E::B], [...]) must throw Error: Object of class E could not be converted to string when keys are enum cases (Zend). VM coerces backed enum cases to integers and builds array(1 => 10, 2 => 20).
Activity
PurHur commentedon Jun 11, 2026
claim: PHP Compiler STD Lib — starting this run
PurHur commentedon Jun 11, 2026
Merged via #8018.
Verification
php bin/vm.php test/repro-maintainer/parity_array_combine_enum_keys.php→Error: Object of class E could not be converted to stringvendor/bin/phpunit --filter array_combine_enum→ OK (3 tests)vendor/bin/phpunit --filter array_combine→ OK (17 tests)VM + JIT + AOT fixtures green; enum case keys no longer coerce to backing ints.
Stdlib: array_combine() enum case keys must Error not LogicException (#…