note 92591 rejected from migration53.incompatible by thiago

From: Date: Thu, 30 Jul 2009 17:01:40 +0000
Subject: note 92591 rejected from migration53.incompatible by thiago
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-158925@lists.php.net to get a copy of this message
Note Submitter: ben dot zayb at yahoo dot com ---- "The behaviour of functions with by-reference parameters called by value has changed. Where previously the function would accept the by-value argument, a warning is now emitted and all by-ref parameters are set to NULL." I find this ambiguous/difficult to understand. "The behaviour of functions with by-reference parameters..." Ok. This is a function "with by-reference parameters..." <?php function a( &$param ){ } ?> "..called by value has changed. Where previously the function would accept the by-value argument" Ok. This is "would accept the by-value argument..." <?php a(2); //2 is a literal ?> But this is illegal even in 5.2. So, I suppose this what is meant by "..called by value..." <?php a($someVariable); ?> "a warning is now emitted and all by-ref parameters are set to NULL" So, this would cause a warning, and all by-ref paramaters are set to NULL? Thanks

« previous php.notes (#158925) next »