Commit:    e8838926644cfb9a0ec9525a5b519da15b3e022a
Author:    Anatoliy Belsky <a...@php.net>         Wed, 6 Jun 2012 00:57:12 +0200
Parents:   b8cdc731b840cf3b8fd49d34ede7485180326a9c
Branches:  PHP-5.3 PHP-5.4 master

Link:       
http://git.php.net/?p=php-src.git;a=commitdiff;h=e8838926644cfb9a0ec9525a5b519da15b3e022a

Log:
fixed a bit overlooked from the last libzip port

Changed paths:
  M  ext/zip/lib/zip_name_locate.c


Diff:
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)


--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to