Re: cvs: php-src(PHP_5_1) /ext/standard/tests/file bug35781.phpt /main/streams plain_wrapper.c streams.c
| From: | Nuno Lopes | Date: | Fri, 23 Dec 2005 18:29:59 +0000 |
| Subject: | Re: cvs: php-src(PHP_5_1) /ext/standard/tests/file bug35781.phpt /main/streams plain_wrapper.c streams.c | ||
| References: | 1 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-36180@lists.php.net to get a copy of this message | ||
@@ -316,7 +316,7 @@ if (data->fd >= 0) { ret = read(data->fd, buf, count); - stream->eof = (ret == 0 || (ret == -1 && errno != EWOULDBLOCK)); + stream->eof = (ret == 0 || (ret == (size_t)-1 && errno != EWOULDBLOCK)); } else { #if HAVE_FLUSHIOWatch out! EAGAIN and EWOULDBLOCK can have different values on some platforms. Nuno