From: Marcus Boerger Date: Sat, 23 Feb 2008 21:24:18 +0000 (+0000) Subject: - Felipe just told me we forgot this one X-Git-Tag: RELEASE_2_0_0a1~360 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=93b6edcf06afb5700d05fe5bd4042e791913bb60;p=php - Felipe just told me we forgot this one --- diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index 09cfd4494a..28876a73b8 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -2195,7 +2195,7 @@ void zend_do_return(znode *expr, int do_end_vparse TSRMLS_DC) /* {{{ */ } else if (CG(active_op_array)->return_reference && expr->u.EA.type == ZEND_PARSED_NEW) { opline->extended_value = ZEND_RETURNS_NEW; - zend_error(E_STRICT, "Returning the return value of new by reference is deprecated"); + zend_error(E_DEPRECATED, "Returning the return value of new by reference is deprecated"); } } else { opline->op1.op_type = IS_CONST;