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

This commit is contained in:
Greg Beaver 2006-01-01 22:20:26 +00:00
parent f21708f0a4
commit 98e7933f8b

View 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;