[php-src] PHP-8.4.28: Skip header_over_4gib.phpt when available memory is insufficient

From: Date: Thu, 19 Nov 2026 14:07:53 +0000
Subject: [php-src] PHP-8.4.28: Skip header_over_4gib.phpt when available memory is insufficient
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-143880@lists.php.net to get a copy of this message
Author: Jakub Zelenka (bukka) Pusher: mbeccati Date: 2026-11-16T11:47:09+01:00 Commit: https://github.com/php/php-src/commit/63f6c1eafdf99baece398cce8e1898d9a38a8925 Raw diff: https://github.com/php/php-src/commit/63f6c1eafdf99baece398cce8e1898d9a38a8925.diff Skip header_over_4gib.phpt when available memory is insufficient The header is duplicated, so the test peaks above 8 GiB and takes down smaller machines (e.g. 7 GB CI runners) with the OOM killer. Changed paths: M ext/standard/tests/general_functions/header_over_4gib.phpt Diff: diff --git a/ext/standard/tests/general_functions/header_over_4gib.phpt b/ext/standard/tests/general_functions/header_over_4gib.phpt index 8beb2521f886..34055e991479 100644 --- a/ext/standard/tests/general_functions/header_over_4gib.phpt +++ b/ext/standard/tests/general_functions/header_over_4gib.phpt @@ -6,6 +6,12 @@ if (!getenv('RUN_RESOURCE_HEAVY_TESTS')) die('skip resource-heavy test'); if (PHP_INT_SIZE != 8) die('skip this test is for 64bit platforms only'); if (getenv('SKIP_SLOW_TESTS')) die('skip slow tests excluded by request'); if (PHP_OS === 'FreeBSD') die('skip Worker does not handle OOM gracefully'); +// The header is duplicated, so the peak memory usage exceeds 8 GiB, which takes +// down smaller machines (e.g. 7 GB CI runners) with the OOM killer. +$memInfo = @file_get_contents('/proc/meminfo'); +if ($memInfo && preg_match('/MemAvailable:\s+(\d+) kB/', $memInfo, $m) && $m[1] < 9 * 1024 * 1024) { + die('skip Insufficient available memory (less than 9 GiB)'); +} ?> --CONFLICTS-- all

« previous php.cvs (#143880) next »