#45603 [Opn->Bgs]: error for reference
| From: | jani@php.net | Date: | Wed, 23 Jul 2008 13:46:19 +0000 |
| Subject: | #45603 [Opn->Bgs]: error for reference | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-127192@lists.php.net to get a copy of this message | ||
ID: 45603
Updated by: jani@php.net
Reported By: wojtek77 at o2 dot pl
-Status: Open
+Status: Bogus
Bug Type: *General Issues
Operating System: Windows 2003 server
PHP Version: 5.2.6
New Comment:
Please submit a new report. This is totally useless/confusing.
You should fill all the textboxes in the "report a bug" page..
Previous Comments:
------------------------------------------------------------------------
[2008-07-23 12:02:03] wojtek77 at o2 dot pl
Description:
------------
Is OK:
function x($x)
{
$x[0] = 0;
}
$x = array(1);
print_r($x);
//$aaa = & $x[0];
x($x);
print_r($x);
//Array ( [0] => 1 ) Array ( [0] => 1 )
Is not OK:
Is OK:
function x($x)
{
$x[0] = 0;
}
$x = array(1);
print_r($x);
$aaa = & $x[0];
x($x);
print_r($x);
//Array ( [0] => 1 ) Array ( [0] => 0 )
//Variable $x underwent the change.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=45603&edit=1