We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41b8cdd commit aa0d886Copy full SHA for aa0d886
ext/json/json.c
@@ -104,6 +104,11 @@ static PHP_GINIT_FUNCTION(json)
104
}
105
/* }}} */
106
107
+static PHP_RINIT_FUNCTION(json)
108
+{
109
+ JSON_G(error_code) = 0;
110
+ return SUCCESS;
111
+}
112
113
/* {{{ json_module_entry */
114
zend_module_entry json_module_entry = {
@@ -112,7 +117,7 @@ zend_module_entry json_module_entry = {
117
ext_functions,
118
PHP_MINIT(json),
119
NULL,
115
- NULL,
120
+ PHP_RINIT(json),
116
121
122
PHP_MINFO(json),
123
PHP_JSON_VERSION,
0 commit comments