From: Christoph M. Becker Date: Fri, 1 May 2015 17:25:31 +0000 (+0200) Subject: return FALSE instead of NULL from ZipArchive::getStream when php_stream_zip_open... X-Git-Tag: PRE_PHP7_NSAPI_REMOVAL~42^2~103 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c3c87e499644c4db6f55f3a4f2abd0261df86553;p=php return FALSE instead of NULL from ZipArchive::getStream when php_stream_zip_open() fails (fixes #67161) --- diff --git a/ext/zip/php_zip.c b/ext/zip/php_zip.c index a547709875..1dd76fcba8 100644 --- a/ext/zip/php_zip.c +++ b/ext/zip/php_zip.c @@ -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; } } /* }}} */