From 1381b14eaaa6d0f3dcbc9b9a2c8116c2ecfac2c4 Mon Sep 17 00:00:00 2001 From: Sara Golemon Date: Wed, 5 May 2010 22:48:14 +0000 Subject: Add JSON_Serializable interface Objects implementing JSON_Serializable will have their ->jsonSerialize() method called Similar to serialize() and __sleep() --- ext/json/php_json.h | 1 + 1 file changed, 1 insertion(+) (limited to 'ext/json/php_json.h') 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 */ -- cgit v1.2.1