#40137 [Opn]: in-function-call variable-define bug
| From: | kolypto at mail dot ru | Date: | Mon, 15 Jan 2007 20:27:31 +0000 |
| Subject: | #40137 [Opn]: in-function-call variable-define bug | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-107630@lists.php.net to get a copy of this message | ||
ID: 40137
User updated by: kolypto at mail dot ru
Reported By: kolypto at mail dot ru
Status: Open
Bug Type: Variables related
Operating System: WinXP
PHP Version: 5.2.0
New Comment:
ADD: php 5.2.0 was downloaded from php.net as windows binary
Previous Comments:
------------------------------------------------------------------------
[2007-01-15 20:11:21] kolypto at mail dot ru
Description:
------------
I've noticed that the construction doesn't work fine with php 5.1.6 and
5.2.0
php4 is okay with this
The function reciaves value 'IN', prints it, and changes it to 'MOD'...
but only in php4 =)
Spent hours catching this
Reproduce code:
---------------
function modify(&$str1)
{
print "\n".'In function:'.$str1;
$str1='MOD';
}
modify($a='IN');
print "\n".$a;
Expected result:
----------------
In function:IN
MOD
Actual result:
--------------
In function:IN
IN
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=40137&edit=1