small fix
This commit is contained in:
parent
aa2920f7ac
commit
a2af53f5f8
@ -75,8 +75,12 @@ class AsynchronousFileReader {
|
||||
*/
|
||||
private function parseResult($streamBuffer) {
|
||||
$resultArray = explode(PHP_EOL . PHP_EOL, $streamBuffer, 2);
|
||||
if (count($resultArray) < 2) {
|
||||
|
||||
switch(count($resultArray)) {
|
||||
case 0:
|
||||
return self::INVALID_RESULT_ERROR;
|
||||
case 1:
|
||||
return '';
|
||||
}
|
||||
|
||||
$header = $this->parseHeader($resultArray[0]);
|
||||
|
Loading…
Reference in New Issue
Block a user