From 9238ac82f5a27d09836a3db70893f8c1cd8eadf7 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Thu, 16 Sep 2021 14:08:19 +0200 Subject: [PATCH] reset json's error code --- php_json_post.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/php_json_post.c b/php_json_post.c index f767b22..fd7f972 100644 --- a/php_json_post.c +++ b/php_json_post.c @@ -161,6 +161,8 @@ static SAPI_POST_HANDLER_FUNC(php_json_post_handler) sapi_send_headers(TSRMLS_C); zend_bailout(); } + /* ext/json in PHP-7 fails to reset error_code in RINIT */ + JSON_G(error_code) = 0; } } -- 2.30.2