diff --git a/cake/libs/socket.php b/cake/libs/socket.php index 1864980a8..4359da465 100644 --- a/cake/libs/socket.php +++ b/cake/libs/socket.php @@ -220,7 +220,7 @@ class CakeSocket extends Object { } } - if (!feof($this->connection)) { + if (feof($this->connection) !== false) { return fread($this->connection, $length); } else { return false;