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
This commit is contained in:
Jakub Vrana 2005-07-25 13:00:01 +00:00
parent 4ed69b8e48
commit 7d539551c1

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.43 $ -->
<!-- $Revision: 1.44 $ -->
<chapter id="language.references">
<title>References Explained</title>
@ -364,6 +364,9 @@ $foo->x = 2;
work as you are attempting to return the result of an
<emphasis>expression</emphasis>, and not a variable, by reference. You can
only return variables by reference from a function - nothing else.
<constant>E_NOTICE</constant> 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
<literal>new</literal> operator.
</simpara>
</note>
</sect1>