#33446 [Opn->Bgs]: Referencing a variable makes everything a variable
| From: | tony2001@php.net | Date: | Thu, 23 Jun 2005 08:51:36 +0000 |
| Subject: | #33446 [Opn->Bgs]: Referencing a variable makes everything a variable | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-80878@lists.php.net to get a copy of this message | ||
ID: 33446
Updated by: tony2001@php.net
Reported By: bens at effortlessis dot com
-Status: Open
+Status: Bogus
Bug Type: Variables related
Operating System: WhiteBox Enterprise Linux 4
PHP Version: 5.0.4
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
Previous Comments:
------------------------------------------------------------------------
[2005-06-23 10:44:03] bens at effortlessis dot com
Description:
------------
a) When you define a simple variable, and then reference it with
another variable, both variables become references... What does this
reference? Why does the status of a previously defined variable change?
b) No modules defined. (./configure; make; make install;)
Stock install, stock php.ini.
Reproduce code:
---------------
<?
$b=5;
$a=&$b;
var_dump(Get_Defined_Vars());
?>
Expected result:
----------------
.....
["b"]=>
int(5)
["a"]=>
&int(5)
}
Actual result:
--------------
....
["b"]=>
&int(5)
["a"]=>
&int(5)
}
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=33446&edit=1