note 14280 added to language.references.pass.php

From: Date: Wed, 25 Jul 2001 00:42:19 +0000
Subject: note 14280 added to language.references.pass.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-15801@lists.php.net to get a copy of this message
Please note, PHP is moving to eliminate passing variables by reference on the function call. You must declare the variable is pass-by-ref in the function definition. In the past this was possible, given the following function definition: function foo ( $a ) { ... } $b = 5; foo ( &$b ); In your php.ini, it is stated that they are moving to eliminate this. Thus, you should (for future compatability) not use this method. Instead, you should do: function ( &$a ) { ... } $b = 5; foo ( $b ); http://www.php.net/manual/en/language.references.pass.php

« previous php.notes (#15801) next »