From 34b4ecb9c233b46079d6cfeac4f7817a19c3ed09 Mon Sep 17 00:00:00 2001 From: gwoo Date: Tue, 12 Aug 2008 22:42:33 +0000 Subject: [PATCH] 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 --- cake/libs/socket.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;