From: Antony Dovgal Date: Thu, 26 Apr 2007 23:42:36 +0000 (+0000) Subject: fix tests X-Git-Tag: RELEASE_1_2_0~209 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=419c5b3db19fc734974d67f0722240346a91fd78;p=php fix tests add test for yet not merged fix --- diff --git a/ext/filter/tests/010.phpt b/ext/filter/tests/010.phpt index 0ebf66f231..e868c10c4c 100644 --- a/ext/filter/tests/010.phpt +++ b/ext/filter/tests/010.phpt @@ -1,5 +1,7 @@ --TEST-- filter_var() +--INI-- +precision=14 --SKIPIF-- --FILE-- diff --git a/ext/filter/tests/011.phpt b/ext/filter/tests/011.phpt index 5ead90213c..6a9bf1fa34 100644 --- a/ext/filter/tests/011.phpt +++ b/ext/filter/tests/011.phpt @@ -1,5 +1,7 @@ --TEST-- input_get() +--INI-- +precision=14 --SKIPIF-- --GET-- diff --git a/ext/filter/tests/bug7715.phpt b/ext/filter/tests/bug7715.phpt index 62e0735218..4298d505d3 100644 --- a/ext/filter/tests/bug7715.phpt +++ b/ext/filter/tests/bug7715.phpt @@ -1,5 +1,7 @@ --TEST-- bug 7715, floats value with integer or incomplete input +--INI-- +precision=14 --SKIPIF-- --FILE-- diff --git a/ext/json/tests/bug40503.phpt b/ext/json/tests/bug40503.phpt index d451eea35d..48f18a4e0f 100644 --- a/ext/json/tests/bug40503.phpt +++ b/ext/json/tests/bug40503.phpt @@ -1,5 +1,7 @@ --TEST-- Bug #40503 (json_encode() value corruption on 32bit systems with overflown values) +--INI-- +precision=14 --SKIPIF-- --FILE-- diff --git a/ext/json/tests/pass001.1.phpt b/ext/json/tests/pass001.1.phpt index 301ececa8d..0fa12d911c 100644 --- a/ext/json/tests/pass001.1.phpt +++ b/ext/json/tests/pass001.1.phpt @@ -1,5 +1,7 @@ --TEST-- JSON (http://www.crockford.com/JSON/JSON_checker/test/pass1.json) +--INI-- +precision=14 --SKIPIF-- --FILE-- diff --git a/ext/standard/tests/array/array_sum.phpt b/ext/standard/tests/array/array_sum.phpt index a483eaae35..08aec2155e 100644 --- a/ext/standard/tests/array/array_sum.phpt +++ b/ext/standard/tests/array/array_sum.phpt @@ -1,6 +1,7 @@ --TEST-- Test array_sum() --INI-- +precision=14 memory_limit=128M --FILE-- +--FILE-- + high +var_dump(range(2147483647, 2147483645, 1 )); +var_dump(range(2147483648, 2147483645, 1 )); + +?> +--EXPECT-- +array(3) { + [0]=> + int(2147483400) + [1]=> + int(2147483500) + [2]=> + int(2147483600) +} +array(3) { + [0]=> + float(2147483646) + [1]=> + float(2147483647) + [2]=> + float(2147483648) +} +array(12) { + [0]=> + float(2147483646) + [1]=> + float(2147483647) + [2]=> + float(2147483648) + [3]=> + float(2147483649) + [4]=> + float(2147483650) + [5]=> + float(2147483651) + [6]=> + float(2147483652) + [7]=> + float(2147483653) + [8]=> + float(2147483654) + [9]=> + float(2147483655) + [10]=> + float(2147483656) + [11]=> + float(2147483657) +} +array(4) { + [0]=> + int(2147483630) + [1]=> + int(2147483635) + [2]=> + int(2147483640) + [3]=> + int(2147483645) +} +array(4) { + [0]=> + float(-2147483645) + [1]=> + float(-2147483646) + [2]=> + float(-2147483647) + [3]=> + float(-2147483648) +} +array(5) { + [0]=> + float(-2147483645) + [1]=> + float(-2147483646) + [2]=> + float(-2147483647) + [3]=> + float(-2147483648) + [4]=> + float(-2147483649) +} +array(4) { + [0]=> + int(-2147483630) + [1]=> + int(-2147483635) + [2]=> + int(-2147483640) + [3]=> + int(-2147483645) +} +array(3) { + [0]=> + int(2147483647) + [1]=> + int(2147483646) + [2]=> + int(2147483645) +} +array(4) { + [0]=> + float(2147483648) + [1]=> + float(2147483647) + [2]=> + float(2147483646) + [3]=> + float(2147483645) +} diff --git a/ext/standard/tests/file/disk.phpt b/ext/standard/tests/file/disk.phpt index 7b3f6c0891..6eef4b4a77 100644 --- a/ext/standard/tests/file/disk.phpt +++ b/ext/standard/tests/file/disk.phpt @@ -1,5 +1,7 @@ --TEST-- disk_total_space() and disk_free_space() tests +--INI-- +precision=14 --SKIPIF-- 2147483647) {