mirror of
https://github.com/php/php-src.git
synced 2025-01-26 21:54:16 +08:00
Restore big exponent letter in var_export() ('1e300' -> '1E300')
This commit is contained in:
parent
c0481701be
commit
aa54d9e385
@ -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) {
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user