summaryrefslogtreecommitdiff
path: root/ext/json/json.c
diff options
context:
space:
mode:
authorMáté Kocsis <kocsismate@woohoolabs.com>2020-04-11 13:27:04 +0200
committerMáté Kocsis <kocsismate@woohoolabs.com>2020-04-11 13:28:53 +0200
commit3fe49d81f850977db93981cf66ed3057f57fd0c9 (patch)
tree431ae5fcb094895cd647d0c0f6904b73315de821 /ext/json/json.c
parentca006e54e30bc5ac96f35af1ed7fd73a8c422cf0 (diff)
downloadphp-git-3fe49d81f850977db93981cf66ed3057f57fd0c9.tar.gz
Generate method entries from stubs for a couple of extensions
Closes GH-5368
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);