summaryrefslogtreecommitdiff
path: root/ext/json/json.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/json/json.c')
-rw-r--r--ext/json/json.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/ext/json/json.c b/ext/json/json.c
index c64378fd56..68990f5ca4 100644
--- a/ext/json/json.c
+++ b/ext/json/json.c
@@ -37,13 +37,6 @@ PHP_JSON_API zend_class_entry *php_json_exception_ce;
PHP_JSON_API ZEND_DECLARE_MODULE_GLOBALS(json)
-/* {{{ JsonSerializable methods */
-static const zend_function_entry json_serializable_interface[] = {
- PHP_ABSTRACT_ME(JsonSerializable, jsonSerialize, arginfo_class_JsonSerializable_jsonSerialize)
- PHP_FE_END
-};
-/* }}} */
-
/* Register constant for options and errors */
#define PHP_JSON_REGISTER_CONSTANT(_name, _value) \
REGISTER_LONG_CONSTANT(_name, _value, CONST_CS | CONST_PERSISTENT);
@@ -53,7 +46,7 @@ static PHP_MINIT_FUNCTION(json)
{
zend_class_entry ce;
- INIT_CLASS_ENTRY(ce, "JsonSerializable", json_serializable_interface);
+ INIT_CLASS_ENTRY(ce, "JsonSerializable", class_JsonSerializable_methods);
php_json_serializable_ce = zend_register_internal_interface(&ce);
INIT_CLASS_ENTRY(ce, "JsonException", NULL);