diff options
Diffstat (limited to 'Zend/zend_exceptions.c')
-rw-r--r-- | Zend/zend_exceptions.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Zend/zend_exceptions.c b/Zend/zend_exceptions.c index ea38f67de6..d9db617855 100644 --- a/Zend/zend_exceptions.c +++ b/Zend/zend_exceptions.c @@ -520,12 +520,8 @@ static void _build_trace_args(zval *arg, smart_str *str) /* {{{ */ smart_str_appends(str, ", "); break; case IS_DOUBLE: { - double dval = Z_DVAL_P(arg); - char *s_tmp; - size_t l_tmp = zend_spprintf(&s_tmp, MAX_LENGTH_OF_DOUBLE + EG(precision) + 1, "%.*G", (int) EG(precision), dval); /* SAFE */ - smart_str_appendl(str, s_tmp, l_tmp); + smart_str_append_printf(str, "%.*G", (int) EG(precision), Z_DVAL_P(arg)); smart_str_appends(str, ", "); - efree(s_tmp); break; } case IS_ARRAY: |