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
PHP 8.4 adds the pipe operator |> for functional chaining. Zend 8.2 (reference Docker image) rejects the syntax; Zend 8.4 accepts and evaluates it. This compiler already lowers pipe on PHP_COMPILER_PROFILE=8.4, but the default/8.2 profile should either reject with the Zend parse error or document the gated behavior — workers need a tracked item for full php-src 8.4 parity including JIT/AOT.
Activity
PurHur commentedon Jul 11, 2026
claim: cursor-agent — starting this run
Language: reject pipe operator on reference profile with Zend parse e…
PurHur commentedon Jul 11, 2026
Merged via #18022.
Fix:
PipeOperatorSyntaxRejectorrejects|>on the 8.4.0-dev reference profile with Zend-shapedsyntax error, unexpected token ">"before desugar. VM/JIT/AOT pipe chains remain gated behindPHP_COMPILER_PROFILE=8.4; compliance providers skip forward-only pipe.phptcases on reference profile.Verification (Docker):
php bin/vm.php -r '$x = 5 |> fn ($v) => $v * 2;'→Fatal error: syntax error, unexpected token ">" ...PHP_COMPILER_PROFILE=8.4 php bin/vm.php test/repro/pipe_operator.php→5PHP_COMPILER_PROFILE=8.4 vendor/bin/phpunit test/aot/AotTest.php --filter pipe_operator→ OKmake bootstrap-selfhost-vm-driver-execute-probe→ OK