com php-src: Fixed numeric string handling length: Zend/zend_ execute.c

From: Date: Fri, 07 Mar 2014 06:35:14 +0000
Subject: com php-src: Fixed numeric string handling length: Zend/zend_ execute.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-77694@lists.php.net to get a copy of this message
Commit: 7003e765126855737f3527142a82d9b9ce34e11a Author: Xinchen Hui <laruence@gmail.com> Fri, 7 Mar 2014 14:35:14 +0800 Parents: ecc06873986c7136b2a134788d0fad58e09358cf Branches: phpng Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=7003e765126855737f3527142a82d9b9ce34e11a Log: Fixed numeric string handling length Changed paths: M Zend/zend_execute.c Diff: diff --git a/Zend/zend_execute.c b/Zend/zend_execute.c index c3f1e31..1187638 100644 --- a/Zend/zend_execute.c +++ b/Zend/zend_execute.c @@ -1086,7 +1086,7 @@ static inline zval *zend_fetch_dimension_address_inner(HashTable *ht, const zval case IS_STRING: offset_key = Z_STR_P(dim); if (dim_type != IS_CONST) { - ZEND_HANDLE_NUMERIC_EX(offset_key->val, offset_key->len, hval, goto num_index); + ZEND_HANDLE_NUMERIC_EX(offset_key->val, offset_key->len + 1, hval, goto num_index); } fetch_string_dim: retval = zend_hash_find(ht, offset_key);

« previous php.cvs (#77694) next »