Re: com php-src: Add __debugInfo() magic method: NEWS Zend/tests/debug_info.phpt Zend/zend.h Zend/zend_API.c Zend/zend_API.h Zend/zend_compile.c
Zend/zend_compile.h Zend/zend_object_handlers.c
| From: | Ferenc Kovacs | Date: | Wed, 26 Feb 2014 14:38:25 +0000 |
| Subject: | Re: com php-src: Add __debugInfo() magic method: NEWS Zend/tests/debug_info.phpt Zend/zend.h Zend/zend_API.c Zend/zend_API.h Zend/zend_compile.c Zend/zend_compile.h Zend/zend_object_handlers.c |
||
| References: | 1 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-76223@lists.php.net to get a copy of this message | ||
Hi Sara,
could you also mention this in UPGRADING?
On Tue, Feb 18, 2014 at 4:33 AM, Sara Golemon <pollita@php.net> wrote:
> Commit: 1e752ce9c57310cced0a5ba8399778c1f500f2b4
> Author: Sara Golemon <pollita@php.net> Mon, 17 Feb 2014
> 19:13:00 -0800
> Parents: 4e4d319e6207e64d62a65c4238105f250cd13d0d
> Branches: PHP-5.6
>
> Link:
>
> http://git.php.net/?p=php-src.git;a=commitdiff;h=1e752ce9c57310cced0a5ba8399778c1f500f2b4
>
> Log:
> Add __debugInfo() magic method
>
> class Foo {
> private $val = 'Random, meaningless data';
>
> public function count() { return 42; }
>
> public function __debugInfo() {
> return ['count' => $this->count()];
> }
> }
>
> $f = new Foo;
> var_dump($f);
>
> Changed paths:
> M NEWS
> A Zend/tests/debug_info.phpt
> M Zend/zend.h
> M Zend/zend_API.c
> M Zend/zend_API.h
> M Zend/zend_compile.c
> M Zend/zend_compile.h
> M Zend/zend_object_handlers.c
>
>
> --
> PHP CVS Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--
Ferenc Kovács
@Tyr43l - http://tyrael.hu