ID:               20953
 Comment by:       jlim at natsoft dot com dot my
 Reported By:      minakov at bas-net dot by
 Status:           No Feedback
 Bug Type:         Scripting Engine problem
 Operating System: Windows NT 5.1 build 2600
 PHP Version:      4.4.0-dev
 New Comment:

I also experienced this problem with the snapshot
php4-win32-STABLE-200506132030.zip

As to what practical use is it? I have lots of old code that is
affected by this.


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

[2003-01-02 18:46:41] [EMAIL PROTECTED]

No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.



------------------------------------------------------------------------

[2002-12-12 11:19:22] [EMAIL PROTECTED]

Just curious..exactly what practical use has this??
Could you give us some real world example instead..?


------------------------------------------------------------------------

[2002-12-12 09:11:51] minakov at bas-net dot by

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] minakov at bas-net dot by

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