[php-src] PR #25260: Fix zend_mm_chunk_alloc_mmap_failure.phpt after OOM became abort()
| From: | Marti2203 | Date: | Sat, 07 Nov 2026 01:09:10 +0000 |
| Subject: | [php-src] PR #25260: Fix zend_mm_chunk_alloc_mmap_failure.phpt after OOM became abort() | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-40373@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/25260
Author: Marti2203
Fixes the
zend_mm_chunk_alloc_mmap_failure.phpt failure reported in GH-25237.
The test came with GH-24542, which targeted PHP-8.4. There, zend_out_of_memory() exits
with status 1. On master it calls abort() since GH-22637, so run-tests.php
appends Termsig=6 after Out of memory, and the expectation did not allow
it. The test only runs on non-PIE builds, so CI skips it and the failure did not show up there.
The expectation now accepts Out of memory followed by Termsig=6, or
allocation succeeded. I checked the new pattern against both outputs; the old one
rejects the abort output. PHP-8.4 and PHP-8.5 still exit with status 1, so they need no change.
Sorry for the breakage, I should have checked the test on master before it was merged up.