diff options
| author | David Soria Parra <dsp@php.net> | 2008-08-26 16:06:36 +0000 |
|---|---|---|
| committer | David Soria Parra <dsp@php.net> | 2008-08-26 16:06:36 +0000 |
| commit | 9f6848373421ea9ff81f41f3b5b6eaf0a797fa60 (patch) | |
| tree | d587fe732e73f050512380db11b1ba1114eeea3b /main/streams/streams.c | |
| parent | 421751d240734fffac73d3909bbc6cdc50e86d5f (diff) | |
| download | php-git-9f6848373421ea9ff81f41f3b5b6eaf0a797fa60.tar.gz | |
MFH: Fixed bug #43782 (feof() does not detect timeout on socket)
Diffstat (limited to 'main/streams/streams.c')
| -rwxr-xr-x | main/streams/streams.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/streams/streams.c b/main/streams/streams.c index b5e618a728..65421c299d 100755 --- a/main/streams/streams.c +++ b/main/streams/streams.c @@ -642,7 +642,7 @@ PHPAPI int _php_stream_eof(php_stream *stream TSRMLS_DC) /* use the configured timeout when checking eof */ if (!stream->eof && PHP_STREAM_OPTION_RETURN_ERR == php_stream_set_option(stream, PHP_STREAM_OPTION_CHECK_LIVENESS, - 0, NULL)) { + -1, NULL)) { stream->eof = 1; } |
