]> granicus.if.org Git - php/commitdiff
fix 018/019.phpt - we need to compare the whole key, not just all but 1 char, otherwi...
authorGreg Beaver <cellog@php.net>
Sun, 1 Jan 2006 22:20:26 +0000 (22:20 +0000)
committerGreg Beaver <cellog@php.net>
Sun, 1 Jan 2006 22:20:26 +0000 (22:20 +0000)
ext/phar/phar.c

index db7ed60e87005ce1a4cb6809110490b9bacc8267..1317213f158216e0dbe271eba7cdbdb57711c299 100644 (file)
@@ -1003,8 +1003,8 @@ static int compare_dir_name(const void *a, const void *b TSRMLS_DC)
        f = *((Bucket **) a);
        s = *((Bucket **) b);
 
-       result = zend_binary_strcmp(f->arKey, f->nKeyLength - 1,
-                                   s->arKey, s->nKeyLength - 1);
+       result = zend_binary_strcmp(f->arKey, f->nKeyLength,
+                                   s->arKey, s->nKeyLength);
 
        if (result == 0) {
                return 0;