]> granicus.if.org Git - php/commitdiff
Fixed numeric string handling length
authorXinchen Hui <laruence@gmail.com>
Fri, 7 Mar 2014 06:35:14 +0000 (14:35 +0800)
committerXinchen Hui <laruence@gmail.com>
Fri, 7 Mar 2014 06:35:14 +0000 (14:35 +0800)
Zend/zend_execute.c

index c3f1e31e192622c2fe3ec6abb2067c724dd49650..118763852f72ac71adeddc61988c465836cd58cb 100644 (file)
@@ -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);