note 92591 added to migration53.incompatible
| From: | ben dot zayb at yahoo dot com | Date: | Thu, 30 Jul 2009 16:01:54 +0000 |
| Subject: | note 92591 added to migration53.incompatible | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-158922@lists.php.net to get a copy of this message | ||
"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
----
Server IP: 69.147.83.197
Probable Submitter: 112.202.76.1
----
Manual Page -- http://www.php.net/manual/en/migration53.incompatible.php
Edit -- https://master.php.net/note/edit/92591
Del: integrated -- https://master.php.net/note/delete/92591/integrated
Del: useless -- https://master.php.net/note/delete/92591/useless
Del: bad code -- https://master.php.net/note/delete/92591/bad+code
Del: spam -- https://master.php.net/note/delete/92591/spam
Del: non-english -- https://master.php.net/note/delete/92591/non-english
Del: in docs -- https://master.php.net/note/delete/92591/in+docs
Del: other reasons-- https://master.php.net/note/delete/92591
Reject -- https://master.php.net/note/reject/92591
Search -- https://master.php.net/manage/user-notes.php