From: Dmitry Stogov Date: Mon, 25 Jun 2007 08:39:23 +0000 (+0000) Subject: Restore big exponent letter in var_export() ('1e300' -> '1E300') X-Git-Tag: BEFORE_IMPORT_OF_MYSQLND~399 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=740f5957ba1a7756750459d9d4bb70b30308b49d;p=php Restore big exponent letter in var_export() ('1e300' -> '1E300') --- diff --git a/main/snprintf.c b/main/snprintf.c index 6943a0a5da..e93913e6f9 100644 --- a/main/snprintf.c +++ b/main/snprintf.c @@ -1082,7 +1082,7 @@ fmt_string: lconv = localeconv(); } #endif - s = php_gcvt(fp_num, precision, *fmt=='H' ? '.' : LCONV_DECIMAL_POINT, (*fmt == 'G')?'E':'e', &num_buf[1]); + s = php_gcvt(fp_num, precision, *fmt=='H' ? '.' : LCONV_DECIMAL_POINT, (*fmt == 'G' || *fmt == 'H')?'E':'e', &num_buf[1]); if (*s == '-') prefix_char = *s++; else if (print_sign) diff --git a/main/spprintf.c b/main/spprintf.c index e532261a9b..27ef5557d9 100644 --- a/main/spprintf.c +++ b/main/spprintf.c @@ -709,7 +709,7 @@ fmt_string: lconv = localeconv(); } #endif - s = php_gcvt(fp_num, precision, *fmt=='H' ? '.' : LCONV_DECIMAL_POINT, (*fmt == 'G')?'E':'e', &num_buf[1]); + s = php_gcvt(fp_num, precision, *fmt=='H' ? '.' : LCONV_DECIMAL_POINT, (*fmt == 'G' || *fmt == 'H')?'E':'e', &num_buf[1]); if (*s == '-') prefix_char = *s++; else if (print_sign)