summaryrefslogtreecommitdiff
path: root/run-tests.php
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2021-02-25 12:05:27 +0100
committerChristoph M. Becker <cmbecker69@gmx.de>2021-02-25 12:05:27 +0100
commit51914610ab8bf75d87e5cdec15bd1b38de7907c5 (patch)
tree118fd842368474daa59c1571d10ea45807a458a4 /run-tests.php
parent362116c80bc3c0d671a72c48d7312cd8dd6ca9e8 (diff)
parentfb683030bf770a946c53c4d622a9d830c2fa2ad6 (diff)
downloadphp-git-51914610ab8bf75d87e5cdec15bd1b38de7907c5.tar.gz
Merge branch 'PHP-8.0'
* PHP-8.0: Capture Microsoft-defined HRESULT exit codes exit codes
Diffstat (limited to 'run-tests.php')
-rwxr-xr-xrun-tests.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/run-tests.php b/run-tests.php
index f6819f95d8..90418df584 100755
--- a/run-tests.php
+++ b/run-tests.php
@@ -1289,6 +1289,9 @@ function system_with_timeout(
}
if ($stat["exitcode"] > 128 && $stat["exitcode"] < 160) {
$data .= "\nTermsig=" . ($stat["exitcode"] - 128) . "\n";
+ } else if (defined('PHP_WINDOWS_VERSION_MAJOR') && (($stat["exitcode"] >> 28) & 0b1111) === 0b1100) {
+ // https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-erref/87fba13e-bf06-450e-83b1-9241dc81e781
+ $data .= "\nTermsig=" . $stat["exitcode"] . "\n";
}
proc_close($proc);