better way to access json globals on PHP 5
[m6w6/ext-json_post] / tests / error003.phpt
1 --TEST--
2 json_post with malformed JSON [warning] (https://github.com/m6w6/ext-json_post/issues/3)
3 --INI--
4 json_post.onerror.warning = on
5 --POST_RAW--
6 Content-Type: application/json
7
8 {"a
9 --FILE_EXTERNAL--
10 error.inc
11 --EXPECTHEADERS--
12 --EXPECTF--
13 Warning: json_post: json_decode failed with error code: %d in %s on line %s
14 DONE