Skip to content

Commit 76ceb9a

Browse files
committed
Better detection
1 parent 7c2155c commit 76ceb9a

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Zend/zend_execute.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1236,16 +1236,14 @@ binary_assign_op_addr: {
12361236
zval tmp;
12371237

12381238
if ((opline>EG(active_op_array)->opcodes)
1239-
&& (opline-1)->opcode == ZEND_JMP_NO_CTOR) {
1239+
&& opline->op1.op_type==IS_VAR
1240+
&& opline->op1.u.EA.type & EXT_TYPE_UNUSED) {
12401241
/* constructor call */
1241-
if (opline->op1.op_type==IS_VAR) {
1242-
EG(AiCount)++;
1243-
}
1242+
EG(AiCount)++; /* for op1 */
12441243
if (opline->op2.op_type==IS_VAR) {
12451244
EG(AiCount)++;
12461245
}
12471246
}
1248-
12491247
function_name = get_zval_ptr(&opline->op2, Ts, &free_op2, BP_VAR_R);
12501248

12511249
tmp = *function_name;

0 commit comments

Comments
 (0)