static int preload_optimize(zend_persistent_script *script)
{
zend_class_entry *ce;
+ zend_persistent_script *tmp_script;
zend_shared_alloc_init_xlat_table();
}
} ZEND_HASH_FOREACH_END();
- ZEND_HASH_FOREACH_PTR(preload_scripts, script) {
- ZEND_HASH_FOREACH_PTR(&script->script.class_table, ce) {
+ ZEND_HASH_FOREACH_PTR(preload_scripts, tmp_script) {
+ ZEND_HASH_FOREACH_PTR(&tmp_script->script.class_table, ce) {
if (ce->ce_flags & ZEND_ACC_TRAIT) {
preload_register_trait_methods(ce);
}