Re: PHP 4.0 Bug #6238: var_dump() param for deactivating reference following
| From: | Stanislav Malyshev | Date: | Fri, 18 Aug 2000 19:24:04 +0000 |
| Subject: | Re: PHP 4.0 Bug #6238: var_dump() param for deactivating reference following | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-29508@lists.php.net to get a copy of this message | ||
>> It would be very, very helpful if we could *disable*
>> reference resolution in var_dump() output, working with
You cannot really "disable" reference resolution, as you cannot disable
hardlinks in Unix. But you can solve circular reference problem with
var_dump. I plan to take on this after 4.0.2 if nobody does it before. The
idea is to keep list of variables already visited.
>> It╢s really handy that var_dump() recognizes if it╢s a
>> variable or not (by prepending &) and I can imagine that
It doesn't catch all circular cases possible. At least, I'm not sure it
does, and my solution is much more clean anyway.
--
Stanislav Malyshev stas@zend.com
+972-3-6139665 ext.106