Skip to content

Commit 101c780

Browse files
whatthejeffYasuo Ohgaki
authored and
Yasuo Ohgaki
committed
Fixed tests that fail with non-default serialize_precision configurations.
See: * https://bugs.php.net/bug.php?id=64760 * 4dc4302
1 parent 25c08a8 commit 101c780

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

ext/standard/tests/general_functions/var_export-locale.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
--TEST--
22
Test var_export() function with locale
33
--INI--
4-
precision=14
4+
serialize_precision=17
55
--SKIPIF--
66
<?php
77
if (!setlocale(LC_ALL, "german", "de","de_DE","de_DE.ISO8859-1","de_DE.ISO_8859-1","de_DE.UTF-8")) {

ext/standard/tests/general_functions/var_export_basic3.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
--TEST--
22
Test var_export() function with valid float values
33
--INI--
4-
precision=14
4+
serialize_precision=17
55
--FILE--
66
<?php
77
/* Prototype : mixed var_export(mixed var [, bool return])

ext/standard/tests/general_functions/var_export_basic5.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
--TEST--
22
Test var_export() function with valid arrays
3+
--INI--
4+
serialize_precision=17
35
--FILE--
46
<?php
57
/* Prototype : mixed var_export(mixed var [, bool return])

tests/lang/bug24640.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
Bug #24640 (var_export and var_dump can't output large float)
33
--INI--
44
precision=12
5+
serialize_precision=17
56
--FILE--
67
<?php
78
function test($v)

0 commit comments

Comments
 (0)