summaryrefslogtreecommitdiff
path: root/ext/zip/php_zip.c
diff options
context:
space:
mode:
authorPierre Joye <pajoye@php.net>2007-05-19 22:25:11 +0000
committerPierre Joye <pajoye@php.net>2007-05-19 22:25:11 +0000
commitb65cdd079315b5d28e2df00699915aa703394692 (patch)
tree7bddb0c2c8b87093f11697976b9de8037ec87052 /ext/zip/php_zip.c
parent26e22f34fa92dec82efe43857a40369cabb8f0ad (diff)
downloadphp-git-b65cdd079315b5d28e2df00699915aa703394692.tar.gz
- use the same checks for zip_stat
Diffstat (limited to 'ext/zip/php_zip.c')
-rw-r--r--ext/zip/php_zip.c6
1 files changed, 3 insertions, 3 deletions
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;
}