ID: 20953 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Feedback Bug Type: Scripting Engine problem Operating System: Windows NT 5.1 build 2600 PHP Version: 4.4.0-dev New Comment:
Just curious..exactly what practical use has this?? Could you give us some real world example instead..? Previous Comments: ------------------------------------------------------------------------ [2002-12-12 09:11:51] [EMAIL PROTECTED] I tried it - it does not work as well. ------------------------------------------------------------------------ [2002-12-12 05:52:17] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php4-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-latest.zip ------------------------------------------------------------------------ [2002-12-12 04:29:28] [EMAIL PROTECTED] let the sample code say the problem <? function &Ref_Bad(&$arr) { return true ? $arr : $arr; } function &Ref_Good(&$arr) { if (true) return $arr; else return $arr; } $arr = array('a' => '1'); $arr_bad =& Ref_Bad($arr); $arr_good =& Ref_Good($arr); $arr_bad['b'] = 2; $arr_good['c'] = 3; print_r($arr); ?> required result: Array ( [a] => 1 [b] => 2 [c] => 3 ) current result: Array ( [a] => 1 [c] => 3 ) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=20953&edit=1
