]> granicus.if.org Git - php/commitdiff
MFH Bugfix #26216: ("getimagesize(): stream does not support seeking" when
authorMarcus Boerger <helly@php.net>
Wed, 12 Nov 2003 22:56:09 +0000 (22:56 +0000)
committerMarcus Boerger <helly@php.net>
Wed, 12 Nov 2003 22:56:09 +0000 (22:56 +0000)
using remote files)

ext/standard/image.c

index 6c2a10283047a64bede3d2327877e2dcab2d3a76..cef34dd8d1b894e9375e93d79919b4358e4073a1 100644 (file)
@@ -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;