mirror of
https://github.com/php/php-src.git
synced 2026-04-17 21:11:02 +02:00
Fix another HANDLE_NUMERIC bug. Looks like you opened Pandora's box, Sterling ;)
This commit is contained in:
@@ -2644,7 +2644,7 @@ void zend_do_add_static_array_element(znode *result, znode *offset, znode *expr)
|
||||
element->type |= IS_CONSTANT_INDEX;
|
||||
/* break missing intentionally */
|
||||
case IS_STRING:
|
||||
zend_hash_update(result->u.constant.value.ht, offset->u.constant.value.str.val, offset->u.constant.value.str.len+1, &element, sizeof(zval *), NULL);
|
||||
zend_symtable_update(result->u.constant.value.ht, offset->u.constant.value.str.val, offset->u.constant.value.str.len+1, &element, sizeof(zval *), NULL);
|
||||
zval_dtor(&offset->u.constant);
|
||||
break;
|
||||
case IS_LONG:
|
||||
|
||||
Reference in New Issue
Block a user