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.
2 parents 5f5eba1 + 3928b6b commit 8d9da8dCopy full SHA for 8d9da8d
ext/opcache/ZendAccelerator.c
@@ -4160,6 +4160,7 @@ static void preload_fix_trait_methods(zend_class_entry *ce)
4160
static int preload_optimize(zend_persistent_script *script)
4161
{
4162
zend_class_entry *ce;
4163
+ zend_persistent_script *tmp_script;
4164
4165
zend_shared_alloc_init_xlat_table();
4166
@@ -4169,8 +4170,8 @@ static int preload_optimize(zend_persistent_script *script)
4169
4170
}
4171
} ZEND_HASH_FOREACH_END();
4172
- ZEND_HASH_FOREACH_PTR(preload_scripts, script) {
4173
- ZEND_HASH_FOREACH_PTR(&script->script.class_table, ce) {
+ ZEND_HASH_FOREACH_PTR(preload_scripts, tmp_script) {
4174
+ ZEND_HASH_FOREACH_PTR(&tmp_script->script.class_table, ce) {
4175
if (ce->ce_flags & ZEND_ACC_TRAIT) {
4176
preload_register_trait_methods(ce);
4177
0 commit comments