mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
Bugfix #26216: ("getimagesize(): stream does not support seeking" when
using remote files)
This commit is contained in:
parent
befbd6d793
commit
81d1a19d0b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user