From 8b023e919283f85270578afc2540599fc5bf5103 Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Mon, 1 Feb 2016 16:32:06 +0300 Subject: [PATCH] use correct pointer in the math --- ext/standard/array.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.40.0