From: zerkms at mail dot ru
Operating system: independent
PHP version: 5.1.1
PHP Bug Type: *General Issues
Bug description: links troubles
Description:
------------
something strange with links to array and objects
Reproduce code:
---------------
//1st
$a = array('a' => 'zzzz');
$q =& $a['a'];
echo $q;
$a = array('a' => 'qwe');
echo $q;
//2nd
$a = new stdclass();
$a->s = 333;
$q =& $a;
echo $q->s;
$a = new stdclass();
$a->s = 444;
echo $q->s;
Expected result:
----------------
//1st
zzzzqwe
//2nd
333333
Actual result:
--------------
//1st
zzzzzzzz
//2nd
333444
--
Edit bug report at http://bugs.php.net/?id=35722&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=35722&r=trysnapshot44
Try a CVS snapshot (PHP 5.1):
http://bugs.php.net/fix.php?id=35722&r=trysnapshot51
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=35722&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=35722&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=35722&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=35722&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=35722&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=35722&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=35722&r=support
Expected behavior: http://bugs.php.net/fix.php?id=35722&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=35722&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=35722&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=35722&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35722&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=35722&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=35722&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=35722&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=35722&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=35722&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=35722&r=mysqlcfg