From: Greg Beaver Date: Sun, 1 Jan 2006 22:20:26 +0000 (+0000) Subject: fix 018/019.phpt - we need to compare the whole key, not just all but 1 char, otherwi... X-Git-Tag: RELEASE_1_0_4~157 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=98e7933f8b5f07b661bbacd83110c24ee5c1edca;p=php fix 018/019.phpt - we need to compare the whole key, not just all but 1 char, otherwise 1-byte files/dirs are not compared --- diff --git a/ext/phar/phar.c b/ext/phar/phar.c index db7ed60e87..1317213f15 100644 --- a/ext/phar/phar.c +++ b/ext/phar/phar.c @@ -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;