summaryrefslogtreecommitdiff
path: root/main/streams
diff options
context:
space:
mode:
authorSimon JAILLET <sjaillet@gmail.com>2017-05-06 16:29:34 +0200
committerSara Golemon <pollita@php.net>2017-11-06 17:34:42 -0500
commit5060fc2349447fe17b59184a0147e73feb0e7a30 (patch)
tree78d50615a620880e847c95f84e4506844c071bde /main/streams
parentb152633ecb2030e2de1f83d2d42193185ea1bc21 (diff)
downloadphp-git-5060fc2349447fe17b59184a0147e73feb0e7a30.tar.gz
Fixes #68948 related to a BC break introduced by #68532 fix.
Diffstat (limited to 'main/streams')
-rw-r--r--main/streams/streams.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/streams/streams.c b/main/streams/streams.c
index dab8505d41..b1099b6fcc 100644
--- a/main/streams/streams.c
+++ b/main/streams/streams.c
@@ -710,7 +710,7 @@ PHPAPI size_t _php_stream_read(php_stream *stream, char *buf, size_t size)
}
/* just break anyway, to avoid greedy read */
- if (stream->wrapper != &php_plain_files_wrapper) {
+ if (!stream->wrapper || stream->wrapper->is_url) {
break;
}
}