Re: [RFC] [VOTE] __debugInfo()

From: Date: Wed, 05 Feb 2014 20:11:48 +0000
Subject: Re: [RFC] [VOTE] __debugInfo()
References: 1 2 3 4 5 6 7 8 9 10 11 12  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
Apart from the aforementioned array cast which is both easy and fast.
It's not easy nor fast to change output of a whole object graph.
Changing class definitions/methods of whole object graph is obviously not an option.
Casting to array is of no help as only for current object and only for public props.
Personally, I think the potential for improving debug output far outweighs the potential for abusing it to hide important info. -Sara
Yes, so why not add extra method for this? "pretty_dump()" This "abuse" is way common then you think (99%?).

Thread (55 messages)

« previous php.internals (#72292) next »