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

From: Date: Mon, 01 Feb 2016 13:33:04 +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-90850@lists.php.net to get a copy of this message
Commit: 8b023e919283f85270578afc2540599fc5bf5103 Author: Antony Dovgal <tony2001@php.net> Mon, 1 Feb 2016 16:32:06 +0300 Parents: 916c1fb3af99706f73c5974616834bb5a71909e3 Branches: PHP-7.0 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=8b023e919283f85270578afc2540599fc5bf5103 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 4152cc4..6227928 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); }

« previous php.cvs (#90850) next »