summaryrefslogtreecommitdiff
path: root/main/streams/streams.c
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2005-05-23 11:51:53 +0000
committerAntony Dovgal <tony2001@php.net>2005-05-23 11:51:53 +0000
commit201fbc48e68a5922d5d43c7ec82b3131af593f54 (patch)
tree8e0265030398c3db9f54c1c720165db37f1326d9 /main/streams/streams.c
parentef111b8364aedf9b8be655df8ca14b1aa02ca11a (diff)
downloadphp-git-201fbc48e68a5922d5d43c7ec82b3131af593f54.tar.gz
fix bug #32810 (fread after tmpfile() reads only 8192 bytes)
Diffstat (limited to 'main/streams/streams.c')
-rwxr-xr-xmain/streams/streams.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/main/streams/streams.c b/main/streams/streams.c
index be19c80cc5..c1d7cb34e1 100755
--- a/main/streams/streams.c
+++ b/main/streams/streams.c
@@ -603,8 +603,9 @@ PHPAPI size_t _php_stream_read(php_stream *stream, char *buf, size_t size TSRMLS
}
/* just break anyway, to avoid greedy read */
- if (stream->wrapper != &php_plain_files_wrapper)
+ if (stream->wrapper != NULL && stream->wrapper != &php_plain_files_wrapper) {
break;
+ }
}
if (didread > 0) {