Re: [RFC] [VOTE] __debugInfo()
| From: | Derick Rethans | Date: | Tue, 11 Feb 2014 18:38:40 +0000 |
| Subject: | Re: [RFC] [VOTE] __debugInfo() | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-72464@lists.php.net to get a copy of this message | ||
On Mon, 3 Feb 2014, Crypto Compress wrote:
> 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" }
__ method names are reserved for internals. There is no BC break.
cheers,
Derick