vrana           Thu Jul 14 05:16:31 2005 EDT

  Modified files:              
    /phpdoc/en/language references.xml 
  Log:
  Wrong references passing produces fatal error
  
http://cvs.php.net/diff.php/phpdoc/en/language/references.xml?r1=1.42&r2=1.43&ty=u
Index: phpdoc/en/language/references.xml
diff -u phpdoc/en/language/references.xml:1.42 
phpdoc/en/language/references.xml:1.43
--- phpdoc/en/language/references.xml:1.42      Wed Jul  6 10:26:29 2005
+++ phpdoc/en/language/references.xml   Thu Jul 14 05:16:30 2005
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.42 $ -->
+<!-- $Revision: 1.43 $ -->
  <chapter id="language.references">
   <title>References Explained</title>
 
@@ -307,10 +307,10 @@
     $a = 5;
     return $a;
 }
-foo(bar());
+foo(bar()); // Produces fatal error since PHP 5.1.0
 
 foo($a = 5); // Expression, not variable
-foo(5); // Constant, not variable
+foo(5); // Produces fatal error
 ?>
 ]]>
      </programlisting>

Reply via email to