Re: PHP 4.0 Bug #6240: is_reference()

From: Date: Fri, 18 Aug 2000 20:00:16 +0000
Subject: Re: PHP 4.0 Bug #6240: is_reference()
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-29520@lists.php.net to get a copy of this message
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
and I understood
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.
point 1) var_dump() is worth nothing if you cut down the display and display sth. like object(foo)(&) for debugging purposes it?ll be important to know which variables are the same (are referenced) I?ll not bother you with this anymore because you haven?t started yet and perhaps there are some other factors, just wanted to mention that "spot the reference" is worth playing... point 2) that mechanism could be resued in serialization of references I think -- o----------0-¬---------O-·---¬----o---®-----o o O ° . | http://www.kiffen.de | pRoteçt y0ur bRaín |0 O ° ? ° · 0°·³°²'²³-¹'³?³°^°³~³²³°'³²²?³²^³¹³²°²³`³º³°Þ ° o © ° . · | psychedelic experience | gott@kiffen.de | O ° o ° o-¬--o--0-----©-·--O-----o-----0-?----------o 0 ° · ° . ? ·

« previous php.dev (#29520) next »