From c3c87e499644c4db6f55f3a4f2abd0261df86553 Mon Sep 17 00:00:00 2001 From: "Christoph M. Becker" Date: Fri, 1 May 2015 19:25:31 +0200 Subject: [PATCH] return FALSE instead of NULL from ZipArchive::getStream when php_stream_zip_open() fails (fixes #67161) --- ext/zip/php_zip.c | 2 ++ 1 file changed, 2 insertions(+) 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; } } /* }}} */ -- 2.40.0