cvs: ZendEngine2 / zend_compile.c

[email protected] ("Marcus Boerger")
Newsgroups php.zend-engine.cvs
Message-ID <cvshelly1203801858@cvsserver>
helly		Sat Feb 23 21:24:18 2008 UTC

  Modified files:              
    /ZendEngine2	zend_compile.c 
  Log:
  - Felipe just told me we forgot this one
  
http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_compile.c?r1=1.803&r2=1.804&diff_format=u
Index: ZendEngine2/zend_compile.c
diff -u ZendEngine2/zend_compile.c:1.803 ZendEngine2/zend_compile.c:1.804
--- ZendEngine2/zend_compile.c:1.803	Sat Feb 23 17:03:51 2008
+++ ZendEngine2/zend_compile.c	Sat Feb 23 21:24:18 2008
@@ -17,7 +17,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: zend_compile.c,v 1.803 2008/02/23 17:03:51 helly Exp $ */
+/* $Id: zend_compile.c,v 1.804 2008/02/23 21:24:18 helly Exp $ */
 
 #include <zend_language_parser.h>
 #include "zend.h"
@@ -2195,7 +2195,7 @@
 		} 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;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.