updated packages
This commit is contained in:
@@ -14,8 +14,8 @@ define('ERR_TIMEOUT', 2);
|
||||
define('ERR_READ_FAILED', 3);
|
||||
define('ERR_WRITE_FAILED', 4);
|
||||
|
||||
$read = array(STDIN);
|
||||
$write = array(STDOUT, STDERR);
|
||||
$read = [STDIN];
|
||||
$write = [STDOUT, STDERR];
|
||||
|
||||
stream_set_blocking(STDIN, 0);
|
||||
stream_set_blocking(STDOUT, 0);
|
||||
@@ -42,7 +42,7 @@ while ($read || $write) {
|
||||
$out = (string) substr($out, $written);
|
||||
}
|
||||
if (null === $read && '' === $out) {
|
||||
$write = array_diff($write, array(STDOUT));
|
||||
$write = array_diff($write, [STDOUT]);
|
||||
}
|
||||
|
||||
if (in_array(STDERR, $w) && strlen($err) > 0) {
|
||||
@@ -53,7 +53,7 @@ while ($read || $write) {
|
||||
$err = (string) substr($err, $written);
|
||||
}
|
||||
if (null === $read && '' === $err) {
|
||||
$write = array_diff($write, array(STDERR));
|
||||
$write = array_diff($write, [STDERR]);
|
||||
}
|
||||
|
||||
if ($r) {
|
||||
|
||||
Reference in New Issue
Block a user