summaryrefslogtreecommitdiff
path: root/ext/standard/image.c
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2003-11-12 22:51:22 +0000
committerMarcus Boerger <helly@php.net>2003-11-12 22:51:22 +0000
commit81d1a19d0b81fc7143aed7af387b921256f1ee31 (patch)
tree1092eb061f0e300d3ee6177e9e95de182b7ed65c /ext/standard/image.c
parentbefbd6d793b22934f3b1e9b0570dd34f0c044acc (diff)
downloadphp-git-81d1a19d0b81fc7143aed7af387b921256f1ee31.tar.gz
Bugfix #26216: ("getimagesize(): stream does not support seeking" when
using remote files)
Diffstat (limited to 'ext/standard/image.c')
-rw-r--r--ext/standard/image.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/image.c b/ext/standard/image.c
index fede26f657..9cd1124ac4 100644
--- a/ext/standard/image.c
+++ b/ext/standard/image.c
@@ -1201,7 +1201,7 @@ PHP_FUNCTION(getimagesize)
WRONG_PARAM_COUNT;
}
- stream = php_stream_open_wrapper(Z_STRVAL_PP(arg1), "rb", REPORT_ERRORS|IGNORE_PATH|ENFORCE_SAFE_MODE, NULL);
+ stream = php_stream_open_wrapper(Z_STRVAL_PP(arg1), "rb", STREAM_MUST_SEEK|REPORT_ERRORS|IGNORE_PATH|ENFORCE_SAFE_MODE, NULL);
if (!stream) {
RETURN_FALSE;