diff options
author | Marcus Boerger <helly@php.net> | 2003-11-12 22:51:22 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2003-11-12 22:51:22 +0000 |
commit | 81d1a19d0b81fc7143aed7af387b921256f1ee31 (patch) | |
tree | 1092eb061f0e300d3ee6177e9e95de182b7ed65c /ext/standard/image.c | |
parent | befbd6d793b22934f3b1e9b0570dd34f0c044acc (diff) | |
download | php-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.c | 2 |
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; |