Commit 6410d567cbc for php

commit 6410d567cbc295aa3747e152755d4c8da7ac6111
Merge: e07fdd51da8 62cec66b3c3
Author: ndossche <7771979+ndossche@users.noreply.github.com>
Date:   Wed Nov 11 21:44:20 2026 +0100

    Merge branch 'PHP-8.6'

    * PHP-8.6:
      Fix GH-25311: Assertion ret == SUCCESS in array_map()/array_filter() after delayed out-of-memory

diff --cc Zend/zend_execute_API.c
index d8cf2d016ee,aa6b4db7f3b..94273a4bc59
--- a/Zend/zend_execute_API.c
+++ b/Zend/zend_execute_API.c
@@@ -847,9 -847,11 +847,9 @@@ zend_result zend_call_function(zend_fca
  		return FAILURE; /* executor is already inactive */
  	}
  	if (ZEND_HAS_OOM()) {
- 		/* Callers expect SUCCESS || EG(exception), so let's throw right now */
+ 		/* Throws UnwindExit if the OOM is pending. If not pending, acts as if executor is inactive. */
  		zend_handle_delayed_oom();
- 		return FAILURE;
 -		if (!EG(exception)) {
 -			return FAILURE;
 -		}
++		ZEND_ASSERT(EG(exception));
  	}
  	if (EG(exception)) {
  		if (fci_cache) {