Commit b4f14f40ac4 for php

commit b4f14f40ac4d1220ac8f74e6cedd01d92b7c917e
Merge: 4985676d96e fbed672173f
Author: ndossche <7771979+ndossche@users.noreply.github.com>
Date:   Thu Oct 8 19:54:14 2026 +0200

    Merge branch 'PHP-8.5' into PHP-8.6

    * PHP-8.5:
      Fix GH-23979: Nullsafe operator must not flush delayed oplines of an enclosing function

diff --cc Zend/zend_compile.c
index e9737dabedb,e0ac8e23b9b..fe8f978ff59
--- a/Zend/zend_compile.c
+++ b/Zend/zend_compile.c
@@@ -3212,9 -3145,9 +3217,10 @@@ static zend_op *zend_delayed_compile_pr
  		/* We will throw if $this doesn't exist, so there's no need to emit a JMP_NULL
  		 * check for a nullsafe access. */
  	} else {
+ 		uint32_t offset = zend_delayed_oplines_stack_size();
  		zend_short_circuiting_mark_inner(obj_ast);
 -		opline = zend_delayed_compile_var(&obj_node, obj_ast, type, 0);
 +		zend_mark_const_object_fetch(obj_ast);
 +		opline = zend_delayed_compile_var(&obj_node, obj_ast, type, false);
  		if (opline && (opline->opcode == ZEND_FETCH_DIM_W
  				|| opline->opcode == ZEND_FETCH_DIM_RW
  				|| opline->opcode == ZEND_FETCH_DIM_FUNC_ARG