Skip to content

Commit d23e4ba

Browse files
UPGRADING.INTERNALS: document ZEND_DECLARE_ATTRIBUTED_CONST (#19270)
[skip ci]
1 parent 54863f4 commit d23e4ba

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

UPGRADING.INTERNALS

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,11 @@ PHP 8.5 INTERNALS UPGRADE NOTES
147147
4. OpCode changes
148148
========================
149149

150+
* New ZEND_DECLARE_ATTRIBUTED_CONST is used when a global constant is declared
151+
with `const` and has attributes; this opcode is used *instead* of the
152+
ZEND_DECLARE_CONST, and in addition to the name of the constant and the
153+
value to use, has a ZEND_OP_DATA with a pointer to the compiled attributes.
154+
150155
========================
151156
5. SAPI changes
152157
========================

0 commit comments

Comments
 (0)