Bug #51800 proc_open on Windows hangs forever
--SKIPIF--
<?php
+ echo 'skip expected to fail or take too long';
if (getenv("SKIP_SLOW_TESTS")) {
die("skip slow test");
}
write. The behaviour might look some better if write/read in a separate thread, however
this is much more resource greedy and complexer to integrate into the user script. */
-$callee = dirname(__FILE__) . "/process" . md5(uniqid()) . ".php";
+$callee = dirname(__FILE__) . "/process_proc_open_bug51800.php";
$php = PHP_BINARY;
$cmd = "$php $callee";
"stderr" => $stderr,
), strlen($stdout), strlen($stderr));
-unlink($callee);
-
?>
===DONE===
+--CLEAN--
+<?php
+$callee = dirname(__FILE__) . "/process_proc_open_bug51800.php";
+unlink($callee);
+?>
--EXPECTF--
array(3) {
["status"]=>
Bug #51800 proc_open on Windows hangs forever, the right way to do it
--FILE--
<?php
-$callee = dirname(__FILE__) . "/process" . md5(uniqid()) . ".php";
+$callee = dirname(__FILE__) . "/process_proc_open_bug51800_right.php";
$php = PHP_BINARY;
$cmd = "$php $callee";
"stderr" => $stderr,
), strlen($stdout), strlen($stderr));
-unlink($callee);
-
?>
===DONE===
+--CLEAN--
+<?php
+$callee = dirname(__FILE__) . "/process_proc_open_bug51800_right.php";
+unlink($callee);
+?>
--EXPECTF--
array(3) {
["status"]=>