From 49eeadec6e6e0882c6bcdcaa97626808984e6fe7 Mon Sep 17 00:00:00 2001 From: Martin Mirchev Date: Sat, 7 Nov 2026 09:08:45 +0800 Subject: [PATCH] Fix zend_mm_chunk_alloc_mmap_failure.phpt after OOM became abort() On master, zend_out_of_memory() calls abort() since GH-22637, so run-tests.php appends "Termsig=6" after "Out of memory". The test was written on PHP-8.4, where the process still exits with status 1. The test only runs on non-PIE builds, so CI skips it. --- Zend/tests/zend_mm_chunk_alloc_mmap_failure.phpt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Zend/tests/zend_mm_chunk_alloc_mmap_failure.phpt b/Zend/tests/zend_mm_chunk_alloc_mmap_failure.phpt index b137f25620c5..bd7c1cf34fa9 100644 --- a/Zend/tests/zend_mm_chunk_alloc_mmap_failure.phpt +++ b/Zend/tests/zend_mm_chunk_alloc_mmap_failure.phpt @@ -29,4 +29,4 @@ $s = str_repeat('A', $size - 4096); echo "allocation succeeded\n"; ?> --EXPECTREGEX-- -bool\(true\)\s+(.*Out of memory|allocation succeeded)\s* +bool\(true\)\s+(.*Out of memory\s+Termsig=6|allocation succeeded)\s*