#25432 [Opn->WFx]: Weird behavior with objects and references
| From: | sniper@php.net | Date: | Mon, 08 Sep 2003 12:45:18 +0000 |
| Subject: | #25432 [Opn->WFx]: Weird behavior with objects and references | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-47245@lists.php.net to get a copy of this message | ||
ID: 25432
Updated by: sniper@php.net
Reported By: alex at primafila dot net
-Status: Open
+Status: Wont fix
Bug Type: Scripting Engine problem
Operating System: RedHat, MacOS X
PHP Version: 4.3.3
New Comment:
That's what you get when you play around with references without
understanding how they work in PHP.
In PHP 5 your script works as you expect. Won't be fixed in PHP 4.
Previous Comments:
------------------------------------------------------------------------
[2003-09-08 08:25:35] alex at primafila dot net
Description:
------------
Weird behavior with objects and references.
Reproduce code:
---------------
http://alex.primafila.net/bug-sample.phps
Expected result:
----------------
array(1) {
["type"]=>
string(6) "strong"
}
array(1) {
["type"]=>
string(6) "strong"
}
Actual result:
--------------
array(1) {
["type"]=>
&string(6) "strong"
}
array(1) {
["type"]=>
&string(4) "type"
}
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=25432&edit=1