Bugfix #26216: ("getimagesize(): stream does not support seeking" when

using remote files)
This commit is contained in:
Marcus Boerger 2003-11-12 22:51:22 +00:00
parent befbd6d793
commit 81d1a19d0b

View 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;