summaryrefslogtreecommitdiff
path: root/ext/json/json.c
diff options
context:
space:
mode:
authorMáté Kocsis <kocsismate@woohoolabs.com>2021-02-05 13:46:46 +0100
committerMáté Kocsis <kocsismate@woohoolabs.com>2021-02-08 19:53:55 +0100
commit98fb565c7448cd455b8d24df5f6be8fcf9330fd7 (patch)
tree939ec045221d2590e28d9111d7721414fec35478 /ext/json/json.c
parent882b418a014890b9b6763825ce9766f21da38a6f (diff)
downloadphp-git-98fb565c7448cd455b8d24df5f6be8fcf9330fd7.tar.gz
Generate class entries from stubs for another batch of extensions
Closes GH-6669
Diffstat (limited to 'ext/json/json.c')
-rw-r--r--ext/json/json.c8
1 files changed, 2 insertions, 6 deletions
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);