Merge branch 'PHP-8.4'

* PHP-8.4:
  Free internal_runtime_cache on shutdown for NTS
This commit is contained in:
Christoph M. Becker 2024-10-21 11:39:20 +02:00
commit c2459d8cc2
No known key found for this signature in database
GPG key ID: D66C9593118BCCB6

View file

@ -1210,6 +1210,10 @@ void zend_shutdown(void) /* {{{ */
CG(script_encoding_list) = NULL; CG(script_encoding_list) = NULL;
CG(script_encoding_list_size) = 0; CG(script_encoding_list_size) = 0;
} }
if (CG(internal_run_time_cache)) {
pefree(CG(internal_run_time_cache), 1);
CG(internal_run_time_cache) = NULL;
}
#endif #endif
zend_map_ptr_static_last = 0; zend_map_ptr_static_last = 0;
zend_map_ptr_static_size = 0; zend_map_ptr_static_size = 0;