Re: PHP 4.0 Bug #6240: is_reference()
| From: | Stanislav Malyshev | Date: | Fri, 18 Aug 2000 19:52:53 +0000 |
| Subject: | Re: PHP 4.0 Bug #6240: is_reference() | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-29519@lists.php.net to get a copy of this message | ||
AL>> It would be a great move towards cleaning up the misunderstanding to
AL>> implement (that╢s possible when you╢ve finished your work on var_dump())
AL>> that a variable is displayed once and all other referenced ones are
AL>> displaying sth like
AL>> *object(foo) <=> object(boo)*
As I already explained in that discussion on serializing references, you
*can not* find out what object is a reference to what (in matters of
variable named, not pointers). I guess in var_dump it could be done if we
keep names in the hash, but I am not sure at all that keepsing full name
(imagine a[0]->foo[2]["bar"]->baz) of the variable worth it. I'd plan to
just cut the display when the variable was already displayed.
I'll think about it a bit more, but keeping the full name of every point
in the variable tree just for the "spot the reference" game seems to much
for me.
--
Stanislav Malyshev stas@zend.com
+972-3-6139665 ext.106