if (OP2_TYPE != IS_UNUSED &&
EG(This) &&
Z_OBJ_HT_P(EG(This))->get_class_entry &&
- !instanceof_function(Z_OBJCE_P(EG(This)), ce TSRMLS_CC)) {
+ !instanceof_function(Z_OBJCE_P(EG(This)), ce TSRMLS_CC)) {
/* We are calling method of the other (incompatible) class,
but passing $this. This is done for compatibility with php-4. */
zend_error(E_STRICT, "Non-static method %s::%s() should not be called statically, assuming $this from incompatible context", EX(fbc)->common.scope->name, EX(fbc)->common.function_name);
if (OP1_TYPE == IS_VAR && !OP1_FREE) {
PZVAL_LOCK(*retval_ptr_ptr); /* undo the effect of get_zval_ptr_ptr() */
}
-// if (opline->extended_value != ZEND_RETURNS_NEW) {
- zend_error(E_NOTICE, "Only variable references should be returned by reference");
-// }
+ zend_error(E_NOTICE, "Only variable references should be returned by reference");
ZEND_VM_C_GOTO(return_by_value);
}
}
if (IS_CONST == IS_VAR && !0) {
PZVAL_LOCK(*retval_ptr_ptr); /* undo the effect of get_zval_ptr_ptr() */
}
-// if (opline->extended_value != ZEND_RETURNS_NEW) {
- zend_error(E_NOTICE, "Only variable references should be returned by reference");
-// }
+ zend_error(E_NOTICE, "Only variable references should be returned by reference");
goto return_by_value;
}
}
if (IS_TMP_VAR == IS_VAR && !1) {
PZVAL_LOCK(*retval_ptr_ptr); /* undo the effect of get_zval_ptr_ptr() */
}
-// if (opline->extended_value != ZEND_RETURNS_NEW) {
- zend_error(E_NOTICE, "Only variable references should be returned by reference");
-// }
+ zend_error(E_NOTICE, "Only variable references should be returned by reference");
goto return_by_value;
}
}
if (IS_VAR == IS_VAR && !(free_op1.var != NULL)) {
PZVAL_LOCK(*retval_ptr_ptr); /* undo the effect of get_zval_ptr_ptr() */
}
-// if (opline->extended_value != ZEND_RETURNS_NEW) {
- zend_error(E_NOTICE, "Only variable references should be returned by reference");
-// }
+ zend_error(E_NOTICE, "Only variable references should be returned by reference");
goto return_by_value;
}
}
if (IS_CV == IS_VAR && !0) {
PZVAL_LOCK(*retval_ptr_ptr); /* undo the effect of get_zval_ptr_ptr() */
}
-// if (opline->extended_value != ZEND_RETURNS_NEW) {
- zend_error(E_NOTICE, "Only variable references should be returned by reference");
-// }
+ zend_error(E_NOTICE, "Only variable references should be returned by reference");
goto return_by_value;
}
}