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.2.3
 New Comment:

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


Previous Comments:
------------------------------------------------------------------------

[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

Reply via email to