mirror of
https://github.com/php/php-src.git
synced 2025-08-16 14:08:47 +02:00
Merge branch 'PHP-7.1'
* PHP-7.1: improve test
This commit is contained in:
commit
b6ae363338
2 changed files with 14 additions and 2 deletions
|
@ -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--
|
||||
|
|
|
@ -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--
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue