X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-json_post;a=blobdiff_plain;f=php_json_post.c;fp=php_json_post.c;h=fd7f972f15fd3a58935b0f1beb91539c3d86e870;hp=f767b22b7e738513a342350bdfbda2b47414e011;hb=9238ac82f5a27d09836a3db70893f8c1cd8eadf7;hpb=a4eb539de9065ebbf4e5d00c32d0cc818bc7c4ec 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; } }