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 04c4d5a commit 14fd6f8Copy full SHA for 14fd6f8
Zend/zend_inheritance.c
@@ -2502,7 +2502,9 @@ static zend_class_entry *zend_lazy_class_load(zend_class_entry *pce)
2502
new_op_array->fn_flags &= ~ZEND_ACC_IMMUTABLE;
2503
new_op_array->scope = ce;
2504
ZEND_MAP_PTR_INIT(new_op_array->run_time_cache, run_time_cache_ptr);
2505
- ZEND_MAP_PTR_INIT(new_op_array->static_variables_ptr, static_variables_ptr);
+ if (new_op_array->static_variables) {
2506
+ ZEND_MAP_PTR_INIT(new_op_array->static_variables_ptr, static_variables_ptr);
2507
+ }
2508
2509
zend_update_inherited_handler(constructor);
2510
zend_update_inherited_handler(destructor);
0 commit comments