We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e08f691 commit 3928b6bCopy full SHA for 3928b6b
ext/opcache/ZendAccelerator.c
@@ -4078,6 +4078,7 @@ static void preload_fix_trait_methods(zend_class_entry *ce)
4078
static int preload_optimize(zend_persistent_script *script)
4079
{
4080
zend_class_entry *ce;
4081
+ zend_persistent_script *tmp_script;
4082
4083
zend_shared_alloc_init_xlat_table();
4084
@@ -4087,8 +4088,8 @@ static int preload_optimize(zend_persistent_script *script)
4087
4088
}
4089
} ZEND_HASH_FOREACH_END();
4090
- ZEND_HASH_FOREACH_PTR(preload_scripts, script) {
4091
- ZEND_HASH_FOREACH_PTR(&script->script.class_table, ce) {
+ ZEND_HASH_FOREACH_PTR(preload_scripts, tmp_script) {
4092
+ ZEND_HASH_FOREACH_PTR(&tmp_script->script.class_table, ce) {
4093
if (ce->ce_flags & ZEND_ACC_TRAIT) {
4094
preload_register_trait_methods(ce);
4095
0 commit comments