com php-src: use correct pointer in the math: ext/standard/array.c

From: Date: Mon, 01 Feb 2016 13:32:06 +0000
Subject: com php-src: use correct pointer in the math: ext/standard/array.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-90849@lists.php.net to get a copy of this message
Commit: 67a728f8a514cf216242d12843c9aad45a032606 Author: Antony Dovgal <tony2001@php.net> Mon, 1 Feb 2016 16:32:06 +0300 Parents: d510255879693f666fd4767611d4dcb96a9ebbc7 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=67a728f8a514cf216242d12843c9aad45a032606 Log: use correct pointer in the math Changed paths: M ext/standard/array.c Diff: diff --git a/ext/standard/array.c b/ext/standard/array.c index 6e30eae..ad447cc 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); }

« previous php.cvs (#90849) next »