summaryrefslogtreecommitdiff
path: root/Zend/zend.h
diff options
context:
space:
mode:
authorSara Golemon <pollita@php.net>2014-02-17 19:13:00 -0800
committerSara Golemon <pollita@php.net>2014-02-17 19:33:56 -0800
commit1e752ce9c57310cced0a5ba8399778c1f500f2b4 (patch)
tree9eb8723cb77cb2c5e5649886252a8c6d76dbe07a /Zend/zend.h
parent4e4d319e6207e64d62a65c4238105f250cd13d0d (diff)
downloadphp-git-1e752ce9c57310cced0a5ba8399778c1f500f2b4.tar.gz
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);
Diffstat (limited to 'Zend/zend.h')
-rw-r--r--Zend/zend.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Zend/zend.h b/Zend/zend.h
index ac2b28a1ef..82e81370e8 100644
--- a/Zend/zend.h
+++ b/Zend/zend.h
@@ -502,6 +502,7 @@ struct _zend_class_entry {
union _zend_function *__call;
union _zend_function *__callstatic;
union _zend_function *__tostring;
+ union _zend_function *__debugInfo;
union _zend_function *serialize_func;
union _zend_function *unserialize_func;