correcting usage of feof in CakeSocket::read()

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7456 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
gwoo 2008-08-12 22:42:33 +00:00
parent 1fa9939965
commit 34b4ecb9c2

View file

@ -220,7 +220,7 @@ class CakeSocket extends Object {
} }
} }
if (!feof($this->connection)) { if (feof($this->connection) !== false) {
return fread($this->connection, $length); return fread($this->connection, $length);
} else { } else {
return false; return false;