UPGRADING.INTERNALS: document ZEND_DECLARE_ATTRIBUTED_CONST (#19270)

[skip ci]
This commit is contained in:
Daniel Scherzer 2025-07-29 07:55:39 -07:00 committed by GitHub
parent 54863f4930
commit d23e4ba538
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -147,6 +147,11 @@ PHP 8.5 INTERNALS UPGRADE NOTES
4. OpCode changes 4. OpCode changes
======================== ========================
* New ZEND_DECLARE_ATTRIBUTED_CONST is used when a global constant is declared
with `const` and has attributes; this opcode is used *instead* of the
ZEND_DECLARE_CONST, and in addition to the name of the constant and the
value to use, has a ZEND_OP_DATA with a pointer to the compiled attributes.
======================== ========================
5. SAPI changes 5. SAPI changes
======================== ========================