mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
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.
This commit is contained in:
parent
422d1665a2
commit
b429228420
2 changed files with 0 additions and 11 deletions
|
@ -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) /* {{{ */
|
ZEND_API zend_string* ZEND_FASTCALL zend_long_to_str(zend_long num) /* {{{ */
|
||||||
{
|
{
|
||||||
if ((zend_ulong)num <= 9) {
|
if ((zend_ulong)num <= 9) {
|
||||||
|
|
|
@ -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 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 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_null_ex(zv) convert_to_null(zv)
|
||||||
#define convert_to_boolean_ex(zv) convert_to_boolean(zv)
|
#define convert_to_boolean_ex(zv) convert_to_boolean(zv)
|
||||||
#define convert_to_long_ex(zv) convert_to_long(zv)
|
#define convert_to_long_ex(zv) convert_to_long(zv)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue