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) /* {{{ */
|
||||
{
|
||||
if ((zend_ulong)num <= 9) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue