mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Don't leak json error_code across requests
This commit is contained in:
parent
41b8cdd2e0
commit
aa0d886cbc
1 changed files with 6 additions and 1 deletions
|
@ -104,6 +104,11 @@ static PHP_GINIT_FUNCTION(json)
|
|||
}
|
||||
/* }}} */
|
||||
|
||||
static PHP_RINIT_FUNCTION(json)
|
||||
{
|
||||
JSON_G(error_code) = 0;
|
||||
return SUCCESS;
|
||||
}
|
||||
|
||||
/* {{{ json_module_entry */
|
||||
zend_module_entry json_module_entry = {
|
||||
|
@ -112,7 +117,7 @@ zend_module_entry json_module_entry = {
|
|||
ext_functions,
|
||||
PHP_MINIT(json),
|
||||
NULL,
|
||||
NULL,
|
||||
PHP_RINIT(json),
|
||||
NULL,
|
||||
PHP_MINFO(json),
|
||||
PHP_JSON_VERSION,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue