X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-json_post;a=blobdiff_plain;f=tests%2Ferror.inc;h=16ae31d41295ba7a36e976813723db293c96ff82;hp=bc957d75c20a81c577383c78822dc2fddd1bdd3e;hb=bda8b43e0418324d9caf532c146bca5a5be89fc1;hpb=d4d2ec5974d3876b2a117c9bd30023b2915afe06 diff --git a/tests/error.inc b/tests/error.inc index bc957d7..16ae31d 100644 --- a/tests/error.inc +++ b/tests/error.inc @@ -1,9 +1,9 @@ = 70000 && ($json_last_error = json_last_error())) var_dump(compact("json_last_error")); -if (($JSON_POST_ERROR = JSON_POST_ERROR) !== 3) +if (($JSON_POST_ERROR = JSON_POST_ERROR) !== (PHP_VERSION_ID < 70000 ? 4 : 3)) var_dump(compact("JSON_POST_ERROR")); if (($http_response_code = http_response_code()) != ini_get("json_post.onerror.response") && ini_get("json_post.onerror.response")) var_dump(compact("http_response_code"));