diff --git a/ext/standard/tests/general_functions/proc_open-win32-mb0.phpt b/ext/standard/tests/general_functions/proc_open-win32-mb0.phpt index d3ead08e74d..981c4b22aa1 100644 --- a/ext/standard/tests/general_functions/proc_open-win32-mb0.phpt +++ b/ext/standard/tests/general_functions/proc_open-win32-mb0.phpt @@ -29,10 +29,16 @@ $p = proc_open( array("bypass_shell" => true) ); -echo fread($pipes[1], 1024); +$out = ""; + +while (!feof($pipes[1])) { + $out .= fread($pipes[1], 1024); +} proc_close($p); +echo $out; + ?> ==DONE== --EXPECTF-- diff --git a/ext/standard/tests/general_functions/proc_open-win32-mb1.phpt b/ext/standard/tests/general_functions/proc_open-win32-mb1.phpt index da17a92b893..f1a70a23e8d 100644 --- a/ext/standard/tests/general_functions/proc_open-win32-mb1.phpt +++ b/ext/standard/tests/general_functions/proc_open-win32-mb1.phpt @@ -26,10 +26,16 @@ $p = proc_open( $pipes ); -echo fread($pipes[1], 1024); +$out = ""; + +while (!feof($pipes[1])) { + $out .= fread($pipes[1], 1024); +} proc_close($p); +echo $out; + ?> ==DONE== --EXPECTF--