Commit:    101c78050032de22832a83630ea136b2752d0fe6
Author:    Jeff Welch <whatthej...@gmail.com>         Fri, 8 Nov 2013 13:07:22 
-0500
Committer: Yasuo Ohgaki <yohg...@php.net>      Wed, 20 Nov 2013 06:17:23 +0900
Parents:   25c08a839a261f3da77767934d8bed29f9831db3
Branches:  PHP-5.4

Link:       
http://git.php.net/?p=php-src.git;a=commitdiff;h=101c78050032de22832a83630ea136b2752d0fe6

Log:
Fixed tests that fail with non-default `serialize_precision` configurations.

See:

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

Changed paths:
  M  ext/standard/tests/general_functions/var_export-locale.phpt
  M  ext/standard/tests/general_functions/var_export_basic3.phpt
  M  ext/standard/tests/general_functions/var_export_basic5.phpt
  M  tests/lang/bug24640.phpt


Diff:
diff --git a/ext/standard/tests/general_functions/var_export-locale.phpt 
b/ext/standard/tests/general_functions/var_export-locale.phpt
index 3cbebe9..b6f87c4 100644
--- a/ext/standard/tests/general_functions/var_export-locale.phpt
+++ b/ext/standard/tests/general_functions/var_export-locale.phpt
@@ -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")) {
diff --git a/ext/standard/tests/general_functions/var_export_basic3.phpt 
b/ext/standard/tests/general_functions/var_export_basic3.phpt
index 9e27d90..58c0448 100644
--- a/ext/standard/tests/general_functions/var_export_basic3.phpt
+++ b/ext/standard/tests/general_functions/var_export_basic3.phpt
@@ -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])
diff --git a/ext/standard/tests/general_functions/var_export_basic5.phpt 
b/ext/standard/tests/general_functions/var_export_basic5.phpt
index 1512fa8..dacb355 100644
--- a/ext/standard/tests/general_functions/var_export_basic5.phpt
+++ b/ext/standard/tests/general_functions/var_export_basic5.phpt
@@ -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])
diff --git a/tests/lang/bug24640.phpt b/tests/lang/bug24640.phpt
index e41d020..d028891 100644
--- a/tests/lang/bug24640.phpt
+++ b/tests/lang/bug24640.phpt
@@ -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)


--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to