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 392f0ab commit f896b98Copy full SHA for f896b98
ext/opcache/Optimizer/zend_optimizer.c
@@ -844,7 +844,9 @@ zend_function *zend_optimizer_get_called_func(
844
case ZEND_INIT_METHOD_CALL:
845
if (opline->op1_type == IS_UNUSED
846
&& opline->op2_type == IS_CONST && Z_TYPE_P(CRT_CONSTANT(opline->op2)) == IS_STRING
847
- && op_array->scope && !(op_array->scope->ce_flags & ZEND_ACC_TRAIT)) {
+ && op_array->scope
848
+ && !(op_array->fn_flags & ZEND_ACC_TRAIT_CLONE)
849
+ && !(op_array->scope->ce_flags & ZEND_ACC_TRAIT)) {
850
zend_string *method_name = Z_STR_P(CRT_CONSTANT(opline->op2) + 1);
851
zend_function *fbc = zend_hash_find_ptr(
852
&op_array->scope->function_table, method_name);
0 commit comments