From 81d1a19d0b81fc7143aed7af387b921256f1ee31 Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Wed, 12 Nov 2003 22:51:22 +0000 Subject: [PATCH] Bugfix #26216: ("getimagesize(): stream does not support seeking" when using remote files) --- ext/standard/image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.50.1