com php-src: improve test: ext/standard/tests/general_functio ns/proc_open-win32-mb0.phpt ext/standard/tests/gene
ral_functions/proc_open-win32-mb1.phpt
| From: | Anatol Belski | Date: | Mon, 10 Jul 2017 11:49:44 +0000 |
| Subject: | com php-src: improve test: ext/standard/tests/general_functio ns/proc_open-win32-mb0.phpt ext/standard/tests/gene ral_functions/proc_open-win32-mb1.phpt |
||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-98494@lists.php.net to get a copy of this message | ||
Commit: fd08eaa8bcfa6ec0c001712fdd34bb516e9c0ff8
Author: Anatol Belski <ab@php.net> Mon, 10 Jul 2017 13:49:44 +0200
Parents: de32c9efc884bef318f52cb0d68743611fb80203
Branches: PHP-7.1 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=fd08eaa8bcfa6ec0c001712fdd34bb516e9c0ff8
Log:
improve test
Changed paths:
M ext/standard/tests/general_functions/proc_open-win32-mb0.phpt
M ext/standard/tests/general_functions/proc_open-win32-mb1.phpt
Diff:
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 d3ead08..981c4b2 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 da17a92..f1a70a2 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--