@@ -270,9 +270,6 @@ void shutdown_destructors(void) /* {{{ */
270270/* Free values held by the executor. */
271271ZEND_API void zend_shutdown_executor_values (bool fast_shutdown )
272272{
273- zend_string * key ;
274- zval * zv ;
275-
276273 EG (flags ) |= EG_FLAGS_IN_RESOURCE_SHUTDOWN ;
277274 zend_try {
278275 zend_close_rsrc_list (& EG (regular_list ));
@@ -282,12 +279,15 @@ ZEND_API void zend_shutdown_executor_values(bool fast_shutdown)
282279 EG (active ) = 0 ;
283280
284281 if (!fast_shutdown ) {
282+ zval * zv ;
283+
285284 zend_hash_graceful_reverse_destroy (& EG (symbol_table ));
286285
287286 /* Constants may contain objects, destroy them before the object store. */
288287 if (EG (full_tables_cleanup )) {
289288 zend_hash_reverse_apply (EG (zend_constants ), clean_non_persistent_constant_full );
290289 } else {
290+ zend_string * key ;
291291 ZEND_HASH_MAP_REVERSE_FOREACH_STR_KEY_VAL (EG (zend_constants ), key , zv ) {
292292 zend_constant * c = Z_PTR_P (zv );
293293 if (_idx == EG (persistent_constants_count )) {
@@ -434,8 +434,6 @@ ZEND_API void zend_shutdown_executor_values(bool fast_shutdown)
434434
435435void shutdown_executor (void ) /* {{{ */
436436{
437- zend_string * key ;
438- zval * zv ;
439437#if ZEND_DEBUG
440438 bool fast_shutdown = 0 ;
441439#elif defined(__SANITIZE_ADDRESS__ )
@@ -477,6 +475,8 @@ void shutdown_executor(void) /* {{{ */
477475 zend_hash_reverse_apply (EG (function_table ), clean_non_persistent_function_full );
478476 zend_hash_reverse_apply (EG (class_table ), clean_non_persistent_class_full );
479477 } else {
478+ zend_string * key ;
479+ zval * zv ;
480480 ZEND_HASH_MAP_REVERSE_FOREACH_STR_KEY_VAL (EG (function_table ), key , zv ) {
481481 zend_function * func = Z_PTR_P (zv );
482482 if (_idx == EG (persistent_functions_count )) {
@@ -808,7 +808,6 @@ zend_result _call_user_function_impl(zval *object, zval *function_name, zval *re
808808
809809zend_result zend_call_function (zend_fcall_info * fci , zend_fcall_info_cache * fci_cache ) /* {{{ */
810810{
811- uint32_t i ;
812811 zend_execute_data * call ;
813812 zend_fcall_info_cache fci_cache_local ;
814813 zend_function * func ;
@@ -871,7 +870,7 @@ zend_result zend_call_function(zend_fcall_info *fci, zend_fcall_info_cache *fci_
871870 }
872871 }
873872
874- for (i = 0 ; i < fci -> param_count ; i ++ ) {
873+ for (uint32_t i = 0 ; i < fci -> param_count ; i ++ ) {
875874 zval * param = ZEND_CALL_ARG (call , i + 1 );
876875 zval * arg = & fci -> params [i ];
877876 bool must_wrap = false;
0 commit comments