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

ext/standard/image.c

index fede26f6574ba9022a1a8758cc327df657416234..9cd1124ac47d7889905948953ceabdcff650fe8d 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;