From 7d539551c1980de73026b76e8af08f6b5736c20a Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Mon, 25 Jul 2005 13:00:01 +0000 Subject: [PATCH] E_NOTICE is issued with returning non-references in new versions git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@191447 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/references.xml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/language/references.xml b/language/references.xml index bfd44707e3..8ecd2b16aa 100644 --- a/language/references.xml +++ b/language/references.xml @@ -1,5 +1,5 @@ - + References Explained @@ -364,6 +364,9 @@ $foo->x = 2; work as you are attempting to return the result of an expression, and not a variable, by reference. You can only return variables by reference from a function - nothing else. + E_NOTICE error is issued since PHP 4.4.0 and PHP + 5.1.0 if the code tries to return a dynamic expression or a result of the + new operator.