From: Pierre Joye Date: Sat, 19 May 2007 22:25:11 +0000 (+0000) Subject: - use the same checks for zip_stat X-Git-Tag: php-5.2.3RC1~40 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b65cdd079315b5d28e2df00699915aa703394692;p=php - use the same checks for zip_stat --- diff --git a/ext/zip/php_zip.c b/ext/zip/php_zip.c index 75ffeba106..c1ab3cc507 100644 --- a/ext/zip/php_zip.c +++ b/ext/zip/php_zip.c @@ -62,7 +62,7 @@ static int le_zip_entry; php_error_docref(NULL TSRMLS_CC, E_NOTICE, "Empty string as entry name"); \ RETURN_FALSE; \ } \ - if (zip_stat(za, path, flags, &sb)) { \ + if (zip_stat(za, path, flags, &sb) != 0) { \ RETURN_FALSE; \ } /* }}} */ @@ -103,7 +103,7 @@ static int php_zip_extract_file(struct zip * za, char *dest, char *file, int fil size_t file_basename_len; int is_dir_only = 0; - if (file_len >= MAXPATHLEN || zip_stat(za, file, 0, &sb)) { + if (file_len >= MAXPATHLEN || zip_stat(za, file, 0, &sb) != 0) { return 0; } @@ -1879,7 +1879,7 @@ static ZIPARCHIVE_METHOD(getStream) return; } - if (zip_stat(intern, filename, 0, &sb)) { + if (zip_stat(intern, filename, 0, &sb) != 0) { RETURN_FALSE; }