mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
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:
parent
4ed69b8e48
commit
7d539551c1
1 changed files with 4 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue