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 ]] -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php