Re: cvs: php-src(PHP_5_1) /ext/standard/tests/file bug35781.phpt/main/streams plain_wrapper.c streams.c

From: Date: Sat, 24 Dec 2005 14:58:07 +0000
Subject: Re: cvs: php-src(PHP_5_1) /ext/standard/tests/file bug35781.phpt/main/streams plain_wrapper.c streams.c
References: 1 2 3 4  Groups: php.cvs 
Request: Send a blank email to php-cvs+get-36208@lists.php.net to get a copy of this message
Wez, check it out please. On 24.12.2005 17:53, Nuno Lopes wrote:
On 23.12.2005 21:29, Nuno Lopes wrote:
@@ -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_FLUSHIO
Watch out! EAGAIN and EWOULDBLOCK can have different values on some platforms.
And what does that mean ?
That means you need to compare errno against EWOULDBLOCK and EAGAIN. Patch: http://mega.ist.utl.pt/~ncpl/php_plain_wrapper.txt
-- Wbr, Antony Dovgal

« previous php.cvs (#36208) next »