Wrong references are fatal since 5.0.5, not 5.1.0

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@196217 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Jakub Vrana 2005-09-16 23:01:50 +00:00
parent 884831ad79
commit 178147e5b0

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.44 $ -->
<!-- $Revision: 1.45 $ -->
<chapter id="language.references">
<title>References Explained</title>
@ -307,7 +307,7 @@ function bar() // Note the missing &
$a = 5;
return $a;
}
foo(bar()); // Produces fatal error since PHP 5.1.0
foo(bar()); // Produces fatal error since PHP 5.0.5
foo($a = 5); // Expression, not variable
foo(5); // Produces fatal error