mirror of
https://github.com/php/php-src.git
synced 2024-09-24 03:17:26 +00:00
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:
parent
f21708f0a4
commit
98e7933f8b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user