From: Antony Dovgal Date: Mon, 1 Feb 2016 13:32:06 +0000 (+0300) Subject: use correct pointer in the math X-Git-Tag: php-7.1.0alpha2~54^2~18 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8b023e919283f85270578afc2540599fc5bf5103;p=php use correct pointer in the math --- diff --git a/ext/standard/array.c b/ext/standard/array.c index 4152cc4b1f..62279287b6 100644 --- a/ext/standard/array.c +++ b/ext/standard/array.c @@ -270,7 +270,7 @@ static int php_array_key_compare_string(const void *a, const void *b) /* {{{ */ l2 = s->key->len; } else { s2 = zend_print_long_to_buf(buf2 + sizeof(buf2) - 1, s->h); - l2 = buf2 + sizeof(buf2) - 1 - s1; + l2 = buf2 + sizeof(buf2) - 1 - s2; } return zend_binary_strcmp(s1, l1, s2, l2); }