summaryrefslogtreecommitdiff
path: root/ext/json/php_json.h
diff options
context:
space:
mode:
authorSara Golemon <pollita@php.net>2010-05-05 22:48:14 +0000
committerSara Golemon <pollita@php.net>2010-05-05 22:48:14 +0000
commit1381b14eaaa6d0f3dcbc9b9a2c8116c2ecfac2c4 (patch)
tree391ccb74279359f866529bd6a71f4c854bca9b92 /ext/json/php_json.h
parent2b4539fcef1b59d4073c2be8043a3e4c288be852 (diff)
downloadphp-git-1381b14eaaa6d0f3dcbc9b9a2c8116c2ecfac2c4.tar.gz
Add JSON_Serializable interface
Objects implementing JSON_Serializable will have their ->jsonSerialize() method called Similar to serialize() and __sleep()
Diffstat (limited to 'ext/json/php_json.h')
-rw-r--r--ext/json/php_json.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/json/php_json.h b/ext/json/php_json.h
index ded4698d9d..f769020e03 100644
--- a/ext/json/php_json.h
+++ b/ext/json/php_json.h
@@ -49,6 +49,7 @@ ZEND_END_MODULE_GLOBALS(json)
PHP_JSON_API void php_json_encode(smart_str *buf, zval *val, int options TSRMLS_DC);
PHP_JSON_API void php_json_decode(zval *return_value, char *str, int str_len, zend_bool assoc, long depth TSRMLS_DC);
+extern zend_class_entry *php_json_serializable_ce;
#endif /* PHP_JSON_H */