内核更新

This commit is contained in:
2016-12-28 10:41:09 +08:00
parent c89254e12a
commit ffab826db0
65 changed files with 1194 additions and 610 deletions

View File

@@ -30,7 +30,7 @@ class Windows extends Pipes
public function __construct($disableOutput, $input)
{
$this->disableOutput = (bool)$disableOutput;
$this->disableOutput = (bool) $disableOutput;
if (!$this->disableOutput) {
@@ -128,7 +128,7 @@ class Windows extends Pipes
*/
public function areOpen()
{
return (bool)$this->pipes && (bool)$this->fileHandles;
return (bool) $this->pipes && (bool) $this->fileHandles;
}
/**
@@ -213,7 +213,7 @@ class Windows extends Pipes
while (strlen($this->inputBuffer)) {
$written = fwrite($w[0], $this->inputBuffer, 2 << 18);
if ($written > 0) {
$this->inputBuffer = (string)substr($this->inputBuffer, $written);
$this->inputBuffer = (string) substr($this->inputBuffer, $written);
} else {
break;
}
@@ -225,4 +225,4 @@ class Windows extends Pipes
unset($this->pipes[0]);
}
}
}
}