Re: [RFC] [VOTE] __debugInfo()
| From: | Crypto Compress | Date: | Mon, 03 Feb 2014 21:03:51 +0000 |
| Subject: | Re: [RFC] [VOTE] __debugInfo() | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-72119@lists.php.net to get a copy of this message | ||
Hi!
This is a somewhat unexpected BC break in a point release. Why no 6.0 option?
class Dog { public function __debugInfo() { return ['Cat']; } }
var_dump(new Dog); // Array { "Cat" }
Name is a bit ambiguous. This method does not debug anything as in xdebug or phpdbg. It exposes internal "__state".
cryptocompress