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.2.0alpha1~620^2~29 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=67a728f8a514cf216242d12843c9aad45a032606;p=php use correct pointer in the math --- diff --git a/ext/standard/array.c b/ext/standard/array.c index 6e30eae8a1..ad447cc808 100644 --- a/ext/standard/array.c +++ b/ext/standard/array.c @@ -268,7 +268,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); }