summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorAnatoliy Belsky <ab@php.net>2012-06-05 22:57:12 (GMT)
committerAnatoliy Belsky <ab@php.net>2012-06-07 19:01:32 (GMT)
commite8838926644cfb9a0ec9525a5b519da15b3e022a (patch)
tree07741826bfa63067c92f39e6aa28006e9333cb14 /ext
parentb8cdc731b840cf3b8fd49d34ede7485180326a9c (diff)
downloadphp-e8838926644cfb9a0ec9525a5b519da15b3e022a.tar.gz
fixed a bit overlooked from the last libzip port
Diffstat (limited to 'ext')
-rw-r--r--ext/zip/lib/zip_name_locate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/zip/lib/zip_name_locate.c b/ext/zip/lib/zip_name_locate.c
index 08d5b1f..8cdd2c4 100644
--- a/ext/zip/lib/zip_name_locate.c
+++ b/ext/zip/lib/zip_name_locate.c
@@ -68,7 +68,7 @@ _zip_name_locate(struct zip *za, const char *fname, int flags,
return -1;
}
- cmp = (flags & ZIP_FL_NOCASE) ? strcasecmp : strcmp;
+ cmp = (flags & ZIP_FL_NOCASE) ? strcmpi : strcmp;
n = (flags & ZIP_FL_UNCHANGED) ? za->cdir->nentry : za->nentry;
for (i=0; i<n; i++) {
@@ -80,7 +80,7 @@ _zip_name_locate(struct zip *za, const char *fname, int flags,
/* newly added (partially filled) entry */
if (fn == NULL)
continue;
-
+
if (flags & ZIP_FL_NODIR) {
p = strrchr(fn, '/');
if (p)