diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2021-01-14 12:13:34 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2021-01-14 12:13:34 +0100 |
commit | b4292284201eacad83b807dc1ac89e87d799badf (patch) | |
tree | 3f4161c0f6179a95bae6f874156dcdf7b156d4d2 /Zend/zend_operators.c | |
parent | 422d1665a2a744421b5911cbe8541370509bc4f5 (diff) | |
download | php-git-b4292284201eacad83b807dc1ac89e87d799badf.tar.gz |
Remove zend_locale_sprintf_double()
This function is unused, and also not particularly useful now that
PHP no longer prints doubles in a locale-sensitive way unless
someone really goes out of their way to force it.
Diffstat (limited to 'Zend/zend_operators.c')
-rw-r--r-- | Zend/zend_operators.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/Zend/zend_operators.c b/Zend/zend_operators.c index d1f2d553fc..768bfa31af 100644 --- a/Zend/zend_operators.c +++ b/Zend/zend_operators.c @@ -2954,15 +2954,6 @@ ZEND_API int ZEND_FASTCALL zend_compare_objects(zval *o1, zval *o2) /* {{{ */ } /* }}} */ -ZEND_API void ZEND_FASTCALL zend_locale_sprintf_double(zval *op ZEND_FILE_LINE_DC) /* {{{ */ -{ - zend_string *str; - - str = zend_strpprintf(0, "%.*G", (int) EG(precision), (double)Z_DVAL_P(op)); - ZVAL_NEW_STR(op, str); -} -/* }}} */ - ZEND_API zend_string* ZEND_FASTCALL zend_long_to_str(zend_long num) /* {{{ */ { if ((zend_ulong)num <= 9) { |