Patch php-5.3.6-rounding-patch for Math related Bug #54334
Patch version 2011-03-21 11:22 UTC
Return to Bug #54334 |
Download this patch
Patch Revisions:
Developer: for-bugs@hnw.jp
--- php-5.3.6-orig/ext/standard/math.c 2011-01-01 11:19:59.000000000 +0900
+++ php-5.3.6/ext/standard/math.c 2011-03-21 20:17:55.000000000 +0900
@@ -129,11 +129,7 @@
double tmp_value;
int precision_places;
- if ((precision_places = php_intlog10abs(value)) > 0) {
- precision_places = 14 - php_intlog10abs(value);
- } else {
- precision_places = 14;
- }
+ precision_places = 14 - php_intlog10abs(value);
f1 = php_intpow10(abs(places));
|