Re: Change debug_zval_dump to return the dump unaffected by __debugInfo?
| From: | Wes | Date: | Fri, 17 Feb 2017 06:51:57 +0000 |
| Subject: | Re: Change debug_zval_dump to return the dump unaffected by __debugInfo? | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-98320@lists.php.net to get a copy of this message | ||
Actually, scratch that, I'm an imbecile...
function __debugInfo(){ return (array)$this; }
...would work just fine to access the old style dump.... except that it
doesn't.
Did you notice that (array)$object cast uses __debugInfo?
https://3v4l.org/VKbPj