. Fixed bug #71273 (A wrong ext directory setup in php.ini leads to crash).
(Anatol)
. Fixed bug #71297 (Memory leak with consecutive yield from). (Bob)
+ . Fixed bug #71314 (var_export(INF) prints INF.0). (Andrea)
- CURL:
. Fixed bug #71227 (Can't compile php_curl statically). (Anatol)
/* Without a decimal point, PHP treats a number literal as an int.
* This check even works for scientific notation, because the
* mantissa always contains a decimal point.
+ * We need to check for finiteness, because INF, -INF and NAN
+ * must not have a decimal point added.
*/
- if (NULL == strchr(tmp_str, '.')) {
+ if (zend_finite(Z_DVAL_P(struc)) && NULL == strchr(tmp_str, '.')) {
smart_str_appendl(buf, ".0", 2);
}
efree(tmp_str);