On 15 January 2013 04:23, Lars Strojny <lstro...@php.net> wrote: > diff --git a/Zend/zend_operators.c b/Zend/zend_operators.c > index bccccd9..274893c 100644 > --- a/Zend/zend_operators.c > +++ b/Zend/zend_operators.c > @@ -572,6 +572,24 @@ ZEND_API void convert_to_boolean(zval *op) /* {{{ */ > } > /* }}} */ > > +ZEND_API void _convert_to_cstring(zval *op ZEND_FILE_LINE_DC) /* {{{ */ > +{ > + double dval; > + switch (Z_TYPE_P(op)) { > + case IS_DOUBLE: { > + TSRMLS_FETCH(); > + dval = Z_DVAL_P(op); > + Z_STRLEN_P(op) = zend_spprintf(&Z_STRVAL_P(op), 0, > "%.*H", (int) EG(precision), dval); > + /* %H already handles removing trailing zeros from > the fractional part, yay */ > + break; > + } > + default: > + return _convert_to_string(op); > + } > + Z_TYPE_P(op) = IS_STRING; > +} > +/* }}} */ > + > ZEND_API void _convert_to_string(zval *op ZEND_FILE_LINE_DC) /* {{{ */ > { > long lval;
This broke compilation — specifically, the default: code path. I've opened https://github.com/php/php-src/pull/261 to fix this, if someone with Zend karma would be so kind. Thanks, Adam -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php