Hi,
If var_dump would dump the type info into PHP comments then var_dump
would be also valid PHP code. That'd be very cool. I guess this would
be rather easy to code as we already have var_export.
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?
Regards,
Karoly Negyesi
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.
Stanislav Malyshev, Zend Software Architect
stas@zend.com http://www.zend.com/
(408)253-8829 MSN: stas@zend.com
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 ]]