PHP 4.0 Bug #6238 Updated: var_dump() param for deactivating reference following
| From: | Bug Database | Date: | Fri, 18 Aug 2000 15:27:06 +0000 |
| Subject: | PHP 4.0 Bug #6238 Updated: var_dump() param for deactivating reference following | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-29419@lists.php.net to get a copy of this message | ||
ID: 6238
Updated by: waldschrott
Reported By: waldschrott@php.net
Status: Analyzed
Bug Type: Feature/Change Request
Assigned To:
Comments:
hah, just found out that get_object_vars() doesn´t work with circular references too... very bad
summary, using circular references very much makes scripts very hard (impossible) to debug because
of this bug.
You´ll have to kill all circular references to be able to debug objects, depending on number of CRs
it´s perhaps no trivial task cos there´s no function like get_object_references() to be able to
kill them
so var_dump() supports multiple variables, then perhaps
svar_dump() for safe var dump or any other name
maybe get_object_vars() can get this second SAFETY parameter....
Full Bug description available at: http://bugs.php.net/?id=6238