]> granicus.if.org Git - php/commitdiff
return FALSE instead of NULL from ZipArchive::getStream when php_stream_zip_open...
authorChristoph M. Becker <cmbecker69@gmx.de>
Fri, 1 May 2015 17:25:31 +0000 (19:25 +0200)
committerJulien Pauli <jpauli@php.net>
Tue, 12 May 2015 12:32:05 +0000 (14:32 +0200)
ext/zip/php_zip.c

index a54770987594b8e3bff14802f188900ac4200381..1dd76fcba8e45d3df2fbac32f165a7ea6d9fe693 100644 (file)
@@ -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;
        }
 }
 /* }}} */