eyalt                                    Thu, 10 Mar 2011 13:25:19 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=309072

Log:
fixed tests to match the new float precision of 53, as described in bug 47168

Bug: http://bugs.php.net/47168 (Closed) printf of floating point variable 
prints maximum of 40 decimal places
      
Changed paths:
    U   php/php-src/branches/PHP_5_3/ext/standard/tests/strings/printf.phpt
    U   
php/php-src/branches/PHP_5_3/ext/standard/tests/strings/sprintf_variation52.phpt
    U   php/php-src/trunk/ext/standard/tests/strings/printf.phpt
    U   php/php-src/trunk/ext/standard/tests/strings/sprintf_variation52.phpt

Modified: php/php-src/branches/PHP_5_3/ext/standard/tests/strings/printf.phpt
===================================================================
--- php/php-src/branches/PHP_5_3/ext/standard/tests/strings/printf.phpt 
2011-03-10 11:29:59 UTC (rev 309071)
+++ php/php-src/branches/PHP_5_3/ext/standard/tests/strings/printf.phpt 
2011-03-10 13:25:19 UTC (rev 309072)
@@ -670,8 +670,8 @@

 *** Output for precision value more than maximum ***

-Notice: printf(): Requested precision of 988 digits was truncated to PHP 
maximum of 40 digits in %s on line %d
-12345678900.0000000000000000000000000000000000000000
+Notice: printf(): Requested precision of 988 digits was truncated to PHP 
maximum of 53 digits in %s on line %d
+12345678900.00000000000000000000000000000000000000000000000000000

 *** Output for invalid width(-15) specifier ***
 15s

Modified: 
php/php-src/branches/PHP_5_3/ext/standard/tests/strings/sprintf_variation52.phpt
===================================================================
--- 
php/php-src/branches/PHP_5_3/ext/standard/tests/strings/sprintf_variation52.phpt
    2011-03-10 11:29:59 UTC (rev 309071)
+++ 
php/php-src/branches/PHP_5_3/ext/standard/tests/strings/sprintf_variation52.phpt
    2011-03-10 13:25:19 UTC (rev 309072)
@@ -48,7 +48,7 @@
 -- Testing for precision value more than maximum --

 Notice: sprintf(): Requested precision of 988 digits was truncated to PHP 
maximum of %d digits in %s on line %d
-string(52) "12345678900.0000000000000000000000000000000000000000"
+string(65) "12345678900.00000000000000000000000000000000000000000000000000000"

 -- Testing for invalid width(-15) specifier --
 string(3) "15s"

Modified: php/php-src/trunk/ext/standard/tests/strings/printf.phpt
===================================================================
--- php/php-src/trunk/ext/standard/tests/strings/printf.phpt    2011-03-10 
11:29:59 UTC (rev 309071)
+++ php/php-src/trunk/ext/standard/tests/strings/printf.phpt    2011-03-10 
13:25:19 UTC (rev 309072)
@@ -670,8 +670,8 @@

 *** Output for precision value more than maximum ***

-Notice: printf(): Requested precision of 988 digits was truncated to PHP 
maximum of 40 digits in %s on line %d
-12345678900.0000000000000000000000000000000000000000
+Notice: printf(): Requested precision of 988 digits was truncated to PHP 
maximum of 53 digits in %s on line %d
+12345678900.00000000000000000000000000000000000000000000000000000

 *** Output for invalid width(-15) specifier ***
 15s

Modified: php/php-src/trunk/ext/standard/tests/strings/sprintf_variation52.phpt
===================================================================
--- php/php-src/trunk/ext/standard/tests/strings/sprintf_variation52.phpt       
2011-03-10 11:29:59 UTC (rev 309071)
+++ php/php-src/trunk/ext/standard/tests/strings/sprintf_variation52.phpt       
2011-03-10 13:25:19 UTC (rev 309072)
@@ -48,7 +48,7 @@
 -- Testing for precision value more than maximum --

 Notice: sprintf(): Requested precision of 988 digits was truncated to PHP 
maximum of %d digits in %s on line %d
-string(52) "12345678900.0000000000000000000000000000000000000000"
+string(65) "12345678900.00000000000000000000000000000000000000000000000000000"

 -- Testing for invalid width(-15) specifier --
 string(3) "15s"

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

Reply via email to