File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -4493,15 +4493,15 @@ PHP_FUNCTION(array_count_values)
44934493 if ((tmp = zend_hash_index_find (Z_ARRVAL_P (return_value ), Z_LVAL_P (entry ))) == NULL ) {
44944494 zval data ;
44954495 ZVAL_LONG (& data , 1 );
4496- zend_hash_index_update (Z_ARRVAL_P (return_value ), Z_LVAL_P (entry ), & data );
4496+ zend_hash_index_add_new (Z_ARRVAL_P (return_value ), Z_LVAL_P (entry ), & data );
44974497 } else {
44984498 Z_LVAL_P (tmp )++ ;
44994499 }
45004500 } else if (Z_TYPE_P (entry ) == IS_STRING ) {
45014501 if ((tmp = zend_symtable_find (Z_ARRVAL_P (return_value ), Z_STR_P (entry ))) == NULL ) {
45024502 zval data ;
45034503 ZVAL_LONG (& data , 1 );
4504- zend_symtable_update (Z_ARRVAL_P (return_value ), Z_STR_P (entry ), & data );
4504+ zend_symtable_add_new (Z_ARRVAL_P (return_value ), Z_STR_P (entry ), & data );
45054505 } else {
45064506 Z_LVAL_P (tmp )++ ;
45074507 }
You can’t perform that action at this time.
0 commit comments