File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,8 @@ PHP NEWS
22
22
data connection). (Ville Hukkamäki)
23
23
. Fixed bug #74764 (Bindto IPv6 works with file_get_contents but fails with
24
24
stream_socket_client). (Ville Hukkamäki)
25
+ . Fixed bug #75533 (array_reduce is slow when $carry is large array).
26
+ (Manabu Matsui)
25
27
26
28
- Zlib:
27
29
. Fixed bug #75273 (php_zlib_inflate_filter() may not update bytes_consumed).
Original file line number Diff line number Diff line change @@ -5231,19 +5231,17 @@ PHP_FUNCTION(array_reduce)
5231
5231
fci .no_separation = 0 ;
5232
5232
5233
5233
ZEND_HASH_FOREACH_VAL (htbl , operand ) {
5234
- ZVAL_COPY (& args [0 ], & result );
5234
+ ZVAL_COPY_VALUE (& args [0 ], & result );
5235
5235
ZVAL_COPY (& args [1 ], operand );
5236
5236
fci .params = args ;
5237
5237
5238
5238
if (zend_call_function (& fci , & fci_cache ) == SUCCESS && Z_TYPE (retval ) != IS_UNDEF ) {
5239
5239
zval_ptr_dtor (& args [1 ]);
5240
5240
zval_ptr_dtor (& args [0 ]);
5241
- zval_ptr_dtor (& result );
5242
5241
ZVAL_COPY_VALUE (& result , & retval );
5243
5242
} else {
5244
5243
zval_ptr_dtor (& args [1 ]);
5245
5244
zval_ptr_dtor (& args [0 ]);
5246
- zval_ptr_dtor (& result );
5247
5245
return ;
5248
5246
}
5249
5247
} ZEND_HASH_FOREACH_END ();
You can’t perform that action at this time.
0 commit comments