]> granicus.if.org Git - php/commitdiff
Silence potential taskkill error messages
authorChristoph M. Becker <cmbecker69@gmx.de>
Thu, 9 Jan 2020 17:58:17 +0000 (18:58 +0100)
committerChristoph M. Becker <cmbecker69@gmx.de>
Thu, 9 Jan 2020 18:01:37 +0000 (19:01 +0100)
That test is still intermittently failing, because failure to kill the
child process is reported.  Therefore we silence these error messages.

ext/standard/tests/streams/bug78883.phpt

index 469a422d3687d7ed7230e4a3d7a5565d2e339232..ed040e004478e08cbb07eeaff2bab9e0140c4233 100644 (file)
@@ -22,7 +22,7 @@ $bug_is_present = !proc_get_status($proc)['running'];
 if (!$bug_is_present) {\r
        // if the bug is not present, it will hang waiting for stdin,\r
        // thus cmd is still running and we should kill it\r
-       shell_exec("taskkill /T /F /PID {$pid}");\r
+       shell_exec("taskkill /T /F /PID {$pid} 2>nul");\r
 }\r
 fclose($pipes[0]);\r
 fclose($pipes[1]);\r