mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
return FALSE instead of NULL from ZipArchive::getStream when php_stream_zip_open() fails (fixes #67161)
This commit is contained in:
parent
c9c2794fe6
commit
c3c87e4996
@ -2784,6 +2784,8 @@ static ZIPARCHIVE_METHOD(getStream)
|
||||
stream = php_stream_zip_open(obj->filename, filename->val, mode STREAMS_CC);
|
||||
if (stream) {
|
||||
php_stream_to_zval(stream, return_value);
|
||||
} else {
|
||||
RETURN_FALSE;
|
||||
}
|
||||
}
|
||||
/* }}} */
|
||||
|
Loading…
Reference in New Issue
Block a user