]> granicus.if.org Git - php/commitdiff
Fixed tests that fail with non-default `serialize_precision` configurations.
authorJeff Welch <whatthejeff@gmail.com>
Fri, 8 Nov 2013 18:07:22 +0000 (13:07 -0500)
committerYasuo Ohgaki <yohgaki@php.net>
Tue, 19 Nov 2013 21:17:57 +0000 (06:17 +0900)
See:

 * https://bugs.php.net/bug.php?id=64760
 * 4dc4302

ext/standard/tests/general_functions/var_export-locale.phpt
ext/standard/tests/general_functions/var_export_basic3.phpt
ext/standard/tests/general_functions/var_export_basic5.phpt
tests/lang/bug24640.phpt

index 3cbebe9c723d91c0f2aa65701e946b862622bb02..b6f87c431c5500cbe25ef073b91746b950e7cd91 100644 (file)
@@ -1,7 +1,7 @@
 --TEST--
 Test var_export() function with locale
 --INI--
-precision=14
+serialize_precision=17
 --SKIPIF--
 <?php
 if (!setlocale(LC_ALL, "german", "de","de_DE","de_DE.ISO8859-1","de_DE.ISO_8859-1","de_DE.UTF-8")) {
index 9e27d904258173f234b3e31ab0ccf8b431bf33ed..58c04481679c75b8dcae8b2d85e81a4979f38eb7 100644 (file)
@@ -1,7 +1,7 @@
 --TEST--
 Test var_export() function with valid float values
 --INI--
-precision=14
+serialize_precision=17
 --FILE--
 <?php
 /* Prototype  : mixed var_export(mixed var [, bool return])
index 1512fa8377b010a0cb227c0df33b3b742d29cef8..dacb355323092cfc5f5e53ff42b7f82a277c2d0a 100644 (file)
@@ -1,5 +1,7 @@
 --TEST--
 Test var_export() function with valid arrays
+--INI--
+serialize_precision=17
 --FILE--
 <?php
 /* Prototype  : mixed var_export(mixed var [, bool return])
index e41d0201b77955e42b3c60073ecb324e8b0abf1d..d02889101e6f90cdd6b405eab88be46020ff1b0c 100644 (file)
@@ -2,6 +2,7 @@
 Bug #24640 (var_export and var_dump can't output large float)
 --INI--
 precision=12
+serialize_precision=17
 --FILE--
 <?php
 function test($v)