Skip to content

Commit

Permalink
Prevent from being affected by local php.ini
Browse files Browse the repository at this point in the history
  • Loading branch information
laruence committed Oct 13, 2017
1 parent a52d108 commit 21f049b
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 1 deletion.
2 changes: 2 additions & 0 deletions ext/json/tests/bug42785.phpt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
--TEST--
Bug #42785 (Incorrect formatting of double values with non-english locales)
--INI--
serialize_precision=-1
--SKIPIF--
<?php
if (!extension_loaded('json')) die('skip');
Expand Down
4 changes: 3 additions & 1 deletion ext/json/tests/bug50224.phpt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
--TEST--
bug #50224 (json_encode() does not always encode a float as a float)
--INI--
serialize_precision=-1
--SKIPIF--
<?php if (!extension_loaded("json")) print "skip"; ?>
--FILE--
Expand Down Expand Up @@ -57,4 +59,4 @@ array(2) {
float(12)
["integer"]=>
int(12)
}
}
2 changes: 2 additions & 0 deletions ext/json/tests/json_encode_numeric.phpt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
--TEST--
Test json_encode() function with numeric flag
--INI--
serialize_precision=-1
--SKIPIF--
<?php if (!extension_loaded("json")) print "skip"; ?>
--FILE--
Expand Down
1 change: 1 addition & 0 deletions ext/json/tests/pass001.1_64bit.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
JSON (http://www.crockford.com/JSON/JSON_checker/test/pass1.json)
--INI--
precision=14
serialize_precision=-1
--SKIPIF--
<?php
if (!extension_loaded('json')) die('skip');
Expand Down
1 change: 1 addition & 0 deletions ext/json/tests/pass001.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
JSON (http://www.crockford.com/JSON/JSON_checker/test/pass1.json)
--INI--
precision=14
serialize_precision=-1
--SKIPIF--
<?php
if (!extension_loaded('json')) die('skip');
Expand Down
2 changes: 2 additions & 0 deletions ext/json/tests/serialize.phpt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
--TEST--
json_encode() Serialization tests
--INI--
serialize_precision=-1
--SKIPIF--
<?php if (!extension_loaded("json")) print "skip"; ?>
--FILE--
Expand Down

0 comments on commit 21f049b

Please sign in to comment.