From d23e4ba538afd34d74fcb19a9d38f13c899ef527 Mon Sep 17 00:00:00 2001 From: Daniel Scherzer Date: Tue, 29 Jul 2025 07:55:39 -0700 Subject: [PATCH] UPGRADING.INTERNALS: document ZEND_DECLARE_ATTRIBUTED_CONST (#19270) [skip ci] --- UPGRADING.INTERNALS | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/UPGRADING.INTERNALS b/UPGRADING.INTERNALS index a0e69bd083a..184f3a1ef1e 100644 --- a/UPGRADING.INTERNALS +++ b/UPGRADING.INTERNALS @@ -147,6 +147,11 @@ PHP 8.5 INTERNALS UPGRADE NOTES 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 ========================