Re: making var_dump and var_export even better

From: Date: Sun, 30 Mar 2008 20:06:22 +0000
Subject: Re: making var_dump and var_export even better
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-36691@lists.php.net to get a copy of this message
Stanislav Malyshev wrote: >> Also, about circular references. Isn't it possible to reuse the >> circular recognition from print_r and actually write out a reference >> to the offending piece? > > For var_export it isn't possible since there's no way to refer to the > value being exported. I know this is a little hackish, but what if we inserted a NULL in that location, and then appended a few PHP statements that created the references? -- Edward Z. Yang GnuPG: 0x869C48DA HTML Purifier <http://htmlpurifier.org> Anti-XSS Filter [[ 3FA8 E9A9 7385 B691 A6FC B3CB A933 BE7D 869C 48DA ]]

« previous php.internals (#36691) next »