projects
/
m6w6
/
ext-json_post
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(from parent 1:
a4eb539
)
reset json's error code
author
Michael Wallner
<mike@php.net>
Thu, 16 Sep 2021 12:08:19 +0000
(14:08 +0200)
committer
Michael Wallner
<mike@php.net>
Thu, 16 Sep 2021 12:08:19 +0000
(14:08 +0200)
php_json_post.c
patch
|
blob
|
history
diff --git
a/php_json_post.c
b/php_json_post.c
index f767b22b7e738513a342350bdfbda2b47414e011..fd7f972f15fd3a58935b0f1beb91539c3d86e870 100644
(file)
--- 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;
}
}