Re: [RFC] [VOTE] __debugInfo()

From: Date: Wed, 05 Feb 2014 22:35:58 +0000
Subject: Re: [RFC] [VOTE] __debugInfo()
References: 1  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
Hi Sara,

https://wiki.php.net/rfc/debug-info
>

I can't resist telling you about
patchwork/dumper<https://github.com/nicolas-grekas/Patchwork-Dumper>because
it has all you seem to look for.
Except internal info that are hidden from user land, it has a higher
accuracy than var_dump(), because it can dump soft *and* hard references
inside complex data structures. It also offers tailor made output with the
ability to enrich objects/resources with custom
"casters"<https://github.com/nicolas-grekas/Patchwork-Dumper/tree/master/class/Patchwork/Dumper/Caster>
.

Maybe this can fuel some ideas?

For example, I would suggest that any error thrown from a call to
__debugInfo() should be ignored by var_dump()/print_r().

Cheers,
Nicolas


Thread (55 messages)

« previous php.internals (#72303) next »