option is an array). (David Zülke)
- Fixed bug #48913 (Too long error code strings in pdo_odbc driver).
(naf at altlinux dot ru, Felipe)
+- Fixed bug #48802 (printf() returns incorrect outputted length). (Jani)
- Fixed bug #48788 (RecursiveDirectoryIterator doesn't descend into symlinked
directories). (Ilia)
- Fixed bug #48763 (ZipArchive produces corrupt archive). (dani dot church at
PHP_FUNCTION(user_printf)
{
char *result;
- int len;
+ int len, rlen;
if ((result=php_formatted_print(ht, &len, 0, 0 TSRMLS_CC))==NULL) {
RETURN_FALSE;
}
- PHPWRITE(result, len);
+ rlen = PHPWRITE(result, len);
efree(result);
- RETURN_LONG(len);
+ RETURN_LONG(rlen);
}
/* }}} */
PHP_FUNCTION(vprintf)
{
char *result;
- int len;
+ int len, rlen;
if ((result=php_formatted_print(ht, &len, 1, 0 TSRMLS_CC))==NULL) {
RETURN_FALSE;
}
- PHPWRITE(result, len);
+ rlen = PHPWRITE(result, len);
efree(result);
- RETURN_LONG(len);
+ RETURN_LONG(rlen);
}
/* }}} */