Skip to content

Commit 5191461

Browse files
committed
Merge branch 'PHP-8.0'
* PHP-8.0: Capture Microsoft-defined HRESULT exit codes exit codes
2 parents 362116c + fb68303 commit 5191461

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

run-tests.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1289,6 +1289,9 @@ function system_with_timeout(
12891289
}
12901290
if ($stat["exitcode"] > 128 && $stat["exitcode"] < 160) {
12911291
$data .= "\nTermsig=" . ($stat["exitcode"] - 128) . "\n";
1292+
} else if (defined('PHP_WINDOWS_VERSION_MAJOR') && (($stat["exitcode"] >> 28) & 0b1111) === 0b1100) {
1293+
// https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-erref/87fba13e-bf06-450e-83b1-9241dc81e781
1294+
$data .= "\nTermsig=" . $stat["exitcode"] . "\n";
12921295
}
12931296

12941297
proc_close($proc);

0 commit comments

Comments
 (0)