X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2F002.phpt;h=18b2ce7b4db8e34021d36a4b9ceb07f83d755005;hb=39b52ea20ccd222e9205058e4a22e02d27ea53c5;hp=643f56098491b11041169d4ad248cfba7007c54f;hpb=3964b8f0cd83ef3ba5de9d0b2e5e395f95404a8c;p=m6w6%2Fext-json_post diff --git a/tests/002.phpt b/tests/002.phpt index 643f560..18b2ce7 100644 --- a/tests/002.phpt +++ b/tests/002.phpt @@ -1,67 +1,27 @@ --TEST-- -json_post +json_post with > 32bits integer as float on 32bits --SKIPIF-- --INI-- -json_post.flags=2;JSON_BIGINT_AS_STRING +json_post.flags=0 --POST_RAW-- Content-type: text/json { - "null": null, - "bool": true, - "int": 123, - "bigint": 36893488147419103232, - "float": 123.123, - "string": "Hello World", - "array": [1,2,3], - "object": { - "array": [1,2,3], - "unicode": "\u00D6sterreich" - } + "bigint": 12345678901234 } --FILE-- +Done --EXPECTF-- -object(stdClass)#%d (8) { - ["null"]=> - NULL - ["bool"]=> - bool(true) - ["int"]=> - int(123) +object(stdClass)#%d (1) { ["bigint"]=> - string(20) "36893488147419103232" - ["float"]=> - float(123.123) - ["string"]=> - string(11) "Hello World" - ["array"]=> - array(3) { - [0]=> - int(1) - [1]=> - int(2) - [2]=> - int(3) - } - ["object"]=> - object(stdClass)#%d (2) { - ["array"]=> - array(3) { - [0]=> - int(1) - [1]=> - int(2) - [2]=> - int(3) - } - ["unicode"]=> - string(11) "Österreich" - } + float(12345678901234) } -string(8) "No error" \ No newline at end of file +int(0) +Done \ No newline at end of file