Use feof() in while loop

This commit is contained in:
Richard van den Berg 2015-03-19 09:03:26 +01:00 committed by mark_story
parent 3995c70046
commit 7704efdb28

View file

@ -179,7 +179,7 @@ class CakeSocket {
fwrite($this->connection, implode("\r\n", $req) . "\r\n\r\n");
while(true) {
while (!feof($this->connection)) {
$s = rtrim(fgets($this->connection, 4096));
if (preg_match('/^$/', $s)) {
break;