summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2017-07-10 13:49:44 +0200
committerAnatol Belski <ab@php.net>2017-07-10 13:49:44 +0200
commitfd08eaa8bcfa6ec0c001712fdd34bb516e9c0ff8 (patch)
treebc4246b93d92cc5d3e7adf79bf6d8cfd8e7f44a7
parentde32c9efc884bef318f52cb0d68743611fb80203 (diff)
downloadphp-git-fd08eaa8bcfa6ec0c001712fdd34bb516e9c0ff8.tar.gz
improve test
-rw-r--r--ext/standard/tests/general_functions/proc_open-win32-mb0.phpt8
-rw-r--r--ext/standard/tests/general_functions/proc_open-win32-mb1.phpt8
2 files changed, 14 insertions, 2 deletions
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 d3ead08e74..981c4b22aa 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 da17a92b89..f1a70a23e8 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--