X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2F003.phpt;fp=tests%2F003.phpt;h=9ee1aa6376e9712845f489241b618a14954fba5b;hb=b14bbb2fd8b3d37dbc59b38b87642422f9e2632b;hp=0000000000000000000000000000000000000000;hpb=3964b8f0cd83ef3ba5de9d0b2e5e395f95404a8c;p=m6w6%2Fext-json_post diff --git a/tests/003.phpt b/tests/003.phpt new file mode 100644 index 0000000..9ee1aa6 --- /dev/null +++ b/tests/003.phpt @@ -0,0 +1,27 @@ +--TEST-- +json_post with > 32bits integer as float on 32bits +--SKIPIF-- + +--INI-- +json_post.flags=2;JSON_BIGINT_AS_STRING +--POST_RAW-- +Content-type: text/json + +{ + "bigint": 12345678901234 +} +--FILE-- + +Done +--EXPECTF-- +object(stdClass)#%d (1) { + ["bigint"]=> + string(14) "12345678901234" +} +int(0) +Done \ No newline at end of file