--- a/ext/zip/php_zip.c
+++ b/ext/zip/php_zip.c
@@ -1961,6 +1961,9 @@ static ZIPARCHIVE_METHOD(getArchiveComme
 	}
 
 	comment = zip_get_archive_comment(intern, &comment_len, (int)flags);
+	if(comment==NULL) {
+		RETURN_FALSE;
+	}
 	RETURN_STRINGL((char *)comment, (long)comment_len, 1);
 }
 /* }}} */
