diff options
author | Dmitry Stogov <dmitry@php.net> | 2007-06-25 08:39:10 +0000 |
---|---|---|
committer | Dmitry Stogov <dmitry@php.net> | 2007-06-25 08:39:10 +0000 |
commit | aa54d9e38549422eb5e26740f735413d49fc35f9 (patch) | |
tree | e5bbd808320a0fed535b684af5f5b722037a6452 /main | |
parent | c0481701be27c108d35695954c4d1ccf99e67a83 (diff) | |
download | php-git-aa54d9e38549422eb5e26740f735413d49fc35f9.tar.gz |
Restore big exponent letter in var_export() ('1e300' -> '1E300')
Diffstat (limited to 'main')
-rw-r--r-- | main/snprintf.c | 2 | ||||
-rw-r--r-- | main/spprintf.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/main/snprintf.c b/main/snprintf.c index d9aca450c3..861242d193 100644 --- a/main/snprintf.c +++ b/main/snprintf.c @@ -1036,7 +1036,7 @@ static int format_converter(register buffy * odp, const char *fmt, va_list ap) / 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 8b576c0ed7..88e87f1dcd 100644 --- a/main/spprintf.c +++ b/main/spprintf.c @@ -619,7 +619,7 @@ static void xbuf_format_converter(smart_str *xbuf, const char *fmt, va_list ap) 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) |