We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4d2df59 + 92026de commit d34c8b7Copy full SHA for d34c8b7
lib/Phirehose.php
@@ -464,6 +464,10 @@ public function consume($reconnect = TRUE)
464
//Process each full tweet inside $this->buff
465
while(1){
466
$eol = strpos($this->buff,"\r\n"); //Find next line ending
467
+ if($eol===0) { // if 0, then buffer starts with "\r\n", so trim it and loop again
468
+ $this->buff = substr($this->buff,$eol+2); // remove the "\r\n" from line start
469
+ continue; // loop again
470
+ }
471
if($eol===false)break; //Time to get more data
472
$enqueueStart = microtime(TRUE);
473
$this->enqueueStatus(substr($this->buff,0,$eol));
0 commit comments