From: kolypto at mail dot ru
Operating system: WinXP
PHP version: 5.2.0
PHP Bug Type: Variables related
Bug description: in-function-call variable-define bug
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 bug report at http://bugs.php.net/?id=40137&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=40137&r=trysnapshot44
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=40137&r=trysnapshot52
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=40137&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=40137&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=40137&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=40137&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=40137&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=40137&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=40137&r=support
Expected behavior: http://bugs.php.net/fix.php?id=40137&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=40137&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=40137&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=40137&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=40137&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=40137&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=40137&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=40137&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=40137&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=40137&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=40137&r=mysqlcfg