From 98fb565c7448cd455b8d24df5f6be8fcf9330fd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1t=C3=A9=20Kocsis?= Date: Fri, 5 Feb 2021 13:46:46 +0100 Subject: Generate class entries from stubs for another batch of extensions Closes GH-6669 --- ext/json/json.c | 8 ++------ ext/json/json.stub.php | 9 ++++++++- ext/json/json_arginfo.h | 28 +++++++++++++++++++++++++++- 3 files changed, 37 insertions(+), 8 deletions(-) (limited to 'ext/json') diff --git a/ext/json/json.c b/ext/json/json.c index 872766239e..5315966f7d 100644 --- a/ext/json/json.c +++ b/ext/json/json.c @@ -44,13 +44,9 @@ PHP_JSON_API ZEND_DECLARE_MODULE_GLOBALS(json) /* {{{ MINIT */ static PHP_MINIT_FUNCTION(json) { - zend_class_entry ce; + php_json_serializable_ce = register_class_JsonSerializable(); - INIT_CLASS_ENTRY(ce, "JsonSerializable", class_JsonSerializable_methods); - php_json_serializable_ce = zend_register_internal_interface(&ce); - - INIT_CLASS_ENTRY(ce, "JsonException", NULL); - php_json_exception_ce = zend_register_internal_class_ex(&ce, zend_ce_exception); + php_json_exception_ce = register_class_JsonException(zend_ce_exception); /* options for json_encode */ PHP_JSON_REGISTER_CONSTANT("JSON_HEX_TAG", PHP_JSON_HEX_TAG); diff --git a/ext/json/json.stub.php b/ext/json/json.stub.php index a9b5bbf511..bf64f49408 100644 --- a/ext/json/json.stub.php +++ b/ext/json/json.stub.php @@ -1,6 +1,9 @@