note 95907 deleted from language.references.pass by danbrown

From: Date: Thu, 28 Jan 2010 13:16:37 +0000
Subject: note 95907 deleted from language.references.pass by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-165409@lists.php.net to get a copy of this message
Note Submitter: 1longtime ---- As joel from purerave.com noted below, there must be a mistake in the documentation regarding the "Produces fatal error" documented case. Just wasted some time thinking about that one until I found joel's confirmation in the comments and ran the code myself. Docs need to be fixed, it doesn't produce a fatal error, the code block runs fine. <?php function bar() // Note the missing & { $a = 5; return $a; } function foo($a) { print $a; } foo(bar()); // Produces fatal error since PHP 5.0.5 //Works fine for me. Using PHP 5.2.10 ?>

« previous php.notes (#165409) next »