Skip to content

Commit fb68303

Browse files
committed
Merge branch 'PHP-7.4' into PHP-8.0
* PHP-7.4: Capture Microsoft-defined HRESULT exit codes exit codes
2 parents ddea5c0 + a480bf8 commit fb68303

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
@@ -1294,6 +1294,9 @@ function system_with_timeout(
12941294
}
12951295
if ($stat["exitcode"] > 128 && $stat["exitcode"] < 160) {
12961296
$data .= "\nTermsig=" . ($stat["exitcode"] - 128) . "\n";
1297+
} else if (defined('PHP_WINDOWS_VERSION_MAJOR') && (($stat["exitcode"] >> 28) & 0b1111) === 0b1100) {
1298+
// https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-erref/87fba13e-bf06-450e-83b1-9241dc81e781
1299+
$data .= "\nTermsig=" . $stat["exitcode"] . "\n";
12971300
}
12981301

12991302
proc_close($proc);

0 commit comments

Comments
 (0)