. Fixed bug #77391 (1bpp BMPs may fail to be loaded). (Romain Déoux, cmb)
- Mbstring:
+ . Fixed bug #77428 (mb_ereg_replace() doesn't replace a substitution
+ variable). (Nikita)
+ . Fixed bug #77454 (mb_scrub() silently truncates after a null byte).
+ (64796c6e69 at gmail dot com)
- MySQLnd:
. Fixed bug #75684 (In mysqlnd_ext_plugin.h the plugin methods family has
/* }}} */
- static inline char* php_mb_scrub(const char* str, size_t str_len, const mbfl_encoding *enc)
-static inline char* php_mb_scrub(const char* str, size_t str_len, const char* enc, size_t *ret_len)
++static inline char* php_mb_scrub(const char* str, size_t str_len, const mbfl_encoding *enc, size_t *ret_len)
{
- size_t ret_len;
-
- return php_mb_convert_encoding_ex(str, str_len, enc, enc, &ret_len);
- return php_mb_convert_encoding(str, str_len, enc, enc, ret_len);
++ return php_mb_convert_encoding_ex(str, str_len, enc, enc, ret_len);
}
/* {{{ proto string|false mb_scrub([string str[, string encoding]]) */
PHP_FUNCTION(mb_scrub)
{
+ const mbfl_encoding *enc;
char* str;
size_t str_len;
- char *enc = NULL;
- size_t enc_len;
+ char *enc_name = NULL;
+ size_t enc_name_len;
char *ret;
+ size_t ret_len;
ZEND_PARSE_PARAMETERS_START(1, 2)
Z_PARAM_STRING(str, str_len)