File tree Expand file tree Collapse file tree 2 files changed +13
-6
lines changed
ext/standard/tests/streams Expand file tree Collapse file tree 2 files changed +13
-6
lines changed Original file line number Diff line number Diff line change 2
2
Bug #51800 proc_open on Windows hangs forever
3
3
--SKIPIF--
4
4
<?php
5
+ echo 'skip expected to fail or take too long ' ;
5
6
if (getenv ("SKIP_SLOW_TESTS " )) {
6
7
die ("skip slow test " );
7
8
}
@@ -17,7 +18,7 @@ so then the pipe buffer is emptied more often and the child has chance to contin
17
18
write. The behaviour might look some better if write/read in a separate thread, however
18
19
this is much more resource greedy and complexer to integrate into the user script. */
19
20
20
- $ callee = dirname (__FILE__ ) . "/process " . md5 ( uniqid ()) . " .php " ;
21
+ $ callee = dirname (__FILE__ ) . "/process_proc_open_bug51800 .php " ;
21
22
$ php = PHP_BINARY ;
22
23
$ cmd = "$ php $ callee " ;
23
24
@@ -72,10 +73,13 @@ var_dump(array(
72
73
"stderr " => $ stderr ,
73
74
), strlen ($ stdout ), strlen ($ stderr ));
74
75
75
- unlink ($ callee );
76
-
77
76
?>
78
77
===DONE===
78
+ --CLEAN--
79
+ <?php
80
+ $ callee = dirname (__FILE__ ) . "/process_proc_open_bug51800.php " ;
81
+ unlink ($ callee );
82
+ ?>
79
83
--EXPECTF--
80
84
array(3) {
81
85
["status"]=>
Original file line number Diff line number Diff line change 2
2
Bug #51800 proc_open on Windows hangs forever, the right way to do it
3
3
--FILE--
4
4
<?php
5
- $ callee = dirname (__FILE__ ) . "/process " . md5 ( uniqid ()) . " .php " ;
5
+ $ callee = dirname (__FILE__ ) . "/process_proc_open_bug51800_right .php " ;
6
6
$ php = PHP_BINARY ;
7
7
$ cmd = "$ php $ callee " ;
8
8
@@ -56,10 +56,13 @@ var_dump(array(
56
56
"stderr " => $ stderr ,
57
57
), strlen ($ stdout ), strlen ($ stderr ));
58
58
59
- unlink ($ callee );
60
-
61
59
?>
62
60
===DONE===
61
+ --CLEAN--
62
+ <?php
63
+ $ callee = dirname (__FILE__ ) . "/process_proc_open_bug51800_right.php " ;
64
+ unlink ($ callee );
65
+ ?>
63
66
--EXPECTF--
64
67
array(3) {
65
68
["status"]=>
You can’t perform that action at this time.
0 commit comments