vrana           Fri Nov 18 11:20:49 2005 EDT

  Modified files:              
    /phpdoc/en/language references.xml 
  Log:
  =& new produces E_STRICT since PHP 5
  
http://cvs.php.net/diff.php/phpdoc/en/language/references.xml?r1=1.45&r2=1.46&ty=u
Index: phpdoc/en/language/references.xml
diff -u phpdoc/en/language/references.xml:1.45 
phpdoc/en/language/references.xml:1.46
--- phpdoc/en/language/references.xml:1.45      Fri Sep 16 19:01:50 2005
+++ phpdoc/en/language/references.xml   Fri Nov 18 11:20:48 2005
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.45 $ -->
+<!-- $Revision: 1.46 $ -->
  <chapter id="language.references">
   <title>References Explained</title>
 
@@ -60,9 +60,12 @@
 $foo =& find_var($bar);
 ?>
 ]]>
-    </programlisting>
+     </programlisting>
     </informalexample>
-    </para>
+    Since PHP 5, <link linkend="language.oop5.basic.new">new</link> return
+    reference automatically so using <literal>=&amp;</literal> in this
+    context is deprecated and produces E_STRICT level message.
+   </para>
     <note>
      <para>
      Not using the <literal>&amp;</literal> operator causes a copy of the

Reply via email to