1
0
mirror of https://github.com/php/php-src.git synced 2026-04-26 09:28:21 +02:00

Silence potential taskkill error messages

That test is still intermittently failing, because failure to kill the
child process is reported.  Therefore we silence these error messages.
This commit is contained in:
Christoph M. Becker
2020-01-09 18:58:17 +01:00
parent cfa9e5e05e
commit bf629baa9c
+1 -1
View File
@@ -22,7 +22,7 @@ $bug_is_present = !proc_get_status($proc)['running'];
if (!$bug_is_present) {
// if the bug is not present, it will hang waiting for stdin,
// thus cmd is still running and we should kill it
shell_exec("taskkill /T /F /PID {$pid}");
shell_exec("taskkill /T /F /PID {$pid} 2>nul");
}
fclose($pipes[0]);
fclose($pipes[1]);