From: Marcus Boerger Date: Wed, 12 Nov 2003 22:51:22 +0000 (+0000) Subject: Bugfix #26216: ("getimagesize(): stream does not support seeking" when X-Git-Tag: php-5.0.0b3RC1~706 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=81d1a19d0b81fc7143aed7af387b921256f1ee31;p=php Bugfix #26216: ("getimagesize(): stream does not support seeking" when using remote files) --- 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;