mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Move php_gcvt to zend_gcvt
Also move PHP_DOUBLE_MAX_LENGTH to ZEND_DOUBLE_MAX_LENGTH.
This commit is contained in:
parent
7c9ac479eb
commit
d28f6e694d
11 changed files with 126 additions and 123 deletions
|
@ -1083,7 +1083,7 @@ static xmlNodePtr to_xml_double(encodeTypePtr type, zval *data, int style, xmlNo
|
|||
ZVAL_DOUBLE(&tmp, zval_get_double(data));
|
||||
|
||||
str = (char *) safe_emalloc(EG(precision) >= 0 ? EG(precision) : 17, 1, MAX_LENGTH_OF_DOUBLE + 1);
|
||||
php_gcvt(Z_DVAL(tmp), EG(precision), '.', 'E', str);
|
||||
zend_gcvt(Z_DVAL(tmp), EG(precision), '.', 'E', str);
|
||||
xmlNodeSetContentLen(ret, BAD_CAST(str), strlen(str));
|
||||
efree(str);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue