From: Marcus Boerger Date: Wed, 12 Nov 2003 22:56:09 +0000 (+0000) Subject: MFH Bugfix #26216: ("getimagesize(): stream does not support seeking" when X-Git-Tag: php-4.3.5RC1~210 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=10a18840da6386961e10f27bbefa31bea9d904bc;p=php MFH 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 6c2a102830..cef34dd8d1 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;