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
array_multisort() with an inline non-empty array literal must succeed like Zend — php-src copies/sorts ephemeral arrays for inline operands. This compiler rejects the call:
Error: array_multisort(): Argument #1 ($param1) cannot be passed by reference
Related #9362 (empty [] literal) but distinct: non-empty [1,2] and multi-array array_multisort([1,2], [2,1]) also fail on VM while Zend prints ok.
Activity
PurHur commentedon Jun 26, 2026
claim: PHP Compiler STD Lib — batch (issues #12018, #12017)
array_multisort(): allow inline array literals by reference (#12017) (#…
PurHur commentedon Jun 26, 2026
Merged via #12023. Inline array_multisort() literals green on VM + JIT + AOT compile-only guard.