]> granicus.if.org Git - php/commitdiff
MFH: revert the patch
authorAntony Dovgal <tony2001@php.net>
Mon, 11 Apr 2005 15:19:40 +0000 (15:19 +0000)
committerAntony Dovgal <tony2001@php.net>
Mon, 11 Apr 2005 15:19:40 +0000 (15:19 +0000)
main/streams/streams.c

index f3154ccaa60df4958052f1426f809f36663ae229..01541a67ef8a2183f3df972983e93673d7668a5f 100755 (executable)
@@ -836,10 +836,6 @@ PHPAPI char *php_stream_get_record(php_stream *stream, size_t maxlen, size_t *re
 
        php_stream_fill_read_buffer(stream, maxlen TSRMLS_CC);
 
-       if ((stream->writepos - stream->readpos)<=0) {
-               return NULL;
-       }
-
        if (delim_len == 0 || !delim) {
                toread = maxlen;
        } else {