Skip to content

Commit b6ae363

Browse files
committed
Merge branch 'PHP-7.1'
* PHP-7.1: improve test
2 parents ed8bfcc + fd08eaa commit b6ae363

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

ext/standard/tests/general_functions/proc_open-win32-mb0.phpt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,16 @@ $p = proc_open(
2929
array("bypass_shell" => true)
3030
);
3131

32-
echo fread($pipes[1], 1024);
32+
$out = "";
33+
34+
while (!feof($pipes[1])) {
35+
$out .= fread($pipes[1], 1024);
36+
}
3337

3438
proc_close($p);
3539

40+
echo $out;
41+
3642
?>
3743
==DONE==
3844
--EXPECTF--

ext/standard/tests/general_functions/proc_open-win32-mb1.phpt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,16 @@ $p = proc_open(
2626
$pipes
2727
);
2828

29-
echo fread($pipes[1], 1024);
29+
$out = "";
30+
31+
while (!feof($pipes[1])) {
32+
$out .= fread($pipes[1], 1024);
33+
}
3034

3135
proc_close($p);
3236

37+
echo $out;
38+
3339
?>
3440
==DONE==
3541
--EXPECTF--

0 commit comments

Comments
 (0)