summaryrefslogtreecommitdiff
path: root/Zend/zend_API.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_API.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_API.h')
-rw-r--r--Zend/zend_API.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Zend/zend_API.h b/Zend/zend_API.h
index 0a7695b1c8..efc267f918 100644
--- a/Zend/zend_API.h
+++ b/Zend/zend_API.h
@@ -197,6 +197,7 @@ typedef struct _zend_fcall_info_cache {
class_container.__set = handle_propset; \
class_container.__unset = handle_propunset; \
class_container.__isset = handle_propisset; \
+ class_container.__debugInfo = NULL; \
class_container.serialize_func = NULL; \
class_container.unserialize_func = NULL; \
class_container.serialize = NULL; \