Better detection

This commit is contained in:
Zeev Suraski 1999-04-13 22:09:59 +00:00
parent 7c2155c1ad
commit 76ceb9ad44

View File

@ -1236,16 +1236,14 @@ binary_assign_op_addr: {
zval tmp;
if ((opline>EG(active_op_array)->opcodes)
&& (opline-1)->opcode == ZEND_JMP_NO_CTOR) {
&& opline->op1.op_type==IS_VAR
&& opline->op1.u.EA.type & EXT_TYPE_UNUSED) {
/* constructor call */
if (opline->op1.op_type==IS_VAR) {
EG(AiCount)++;
}
EG(AiCount)++; /* for op1 */
if (opline->op2.op_type==IS_VAR) {
EG(AiCount)++;
}
}
function_name = get_zval_ptr(&opline->op2, Ts, &free_op2, BP_VAR_R);
tmp = *function_name;