summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2021-01-14 12:13:34 +0100
committerNikita Popov <nikita.ppv@gmail.com>2021-01-14 12:13:34 +0100
commitb4292284201eacad83b807dc1ac89e87d799badf (patch)
tree3f4161c0f6179a95bae6f874156dcdf7b156d4d2
parent422d1665a2a744421b5911cbe8541370509bc4f5 (diff)
downloadphp-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.
-rw-r--r--Zend/zend_operators.c9
-rw-r--r--Zend/zend_operators.h2
2 files changed, 0 insertions, 11 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) {
diff --git a/Zend/zend_operators.h b/Zend/zend_operators.h
index 1b02c75499..b129a15441 100644
--- a/Zend/zend_operators.h
+++ b/Zend/zend_operators.h
@@ -442,8 +442,6 @@ ZEND_API int ZEND_FASTCALL zend_compare_objects(zval *o1, zval *o2);
ZEND_API int ZEND_FASTCALL zend_atoi(const char *str, size_t str_len);
ZEND_API zend_long ZEND_FASTCALL zend_atol(const char *str, size_t str_len);
-ZEND_API void ZEND_FASTCALL zend_locale_sprintf_double(zval *op ZEND_FILE_LINE_DC);
-
#define convert_to_null_ex(zv) convert_to_null(zv)
#define convert_to_boolean_ex(zv) convert_to_boolean(zv)
#define convert_to_long_ex(zv) convert_to_long(zv)