AOT: enum-as-const, variable static call, interface self::, static array prop (#31967) - #32011
Merged
Merged
Conversation
…ray prop (#31967) Finish remaining #31967 lowering after numeric-string/NAN merge (#31981): enum case class constants, $obj::method(), interface self:: in const expr, and non-empty array static property defaults. Fix #31989 strtol ensureStrtolDecl() parse regression that blocked all AOT compiles. php-src: Zend/zend_enum.c, zend_execute.c (INIT_STATIC_METHOD_CALL), zend_inheritance.c, zend_compile.c (static prop defaults). Co-authored-by: Cursor <cursoragent@cursor.com>
This was referenced Aug 18, 2026
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
+/ NAN<=>>): enum case as class-constant value,$obj::method(), interfaceself::in const expressions, and non-empty array literals on static properties.ensureStrtolDecl()was inserted inside call argument lists (PHP parse error / silent AOT exit 255 on every compile).php-src references:
Zend/zend_enum.c,zend_execute.c(ZEND_INIT_STATIC_METHOD_CALL),zend_inheritance.c,zend_compile.c(static prop defaults).Verification
Not covered: full
./script/ci-local.sh;ClassConstEnumCaseJitCompileTeststill fails module verify in isolation though the same int-backed enum snippet compiles and runs viabin/compile.php(pre-existing jitCompileBlock→compileCommon test harness gap).Closes #31967
Made with Cursor