Hello.
Looking through the source code of the mbstring.c file I found a lot
of unused internal functions. It seems that this is just a bunch of
old junk.
Examples:
MBSTRING_API size_t php_mb_mbchar_bytes_ex(const char *s, const
mbfl_encoding *enc)
MBSTRING_API size_t php_mb_mbchar_bytes(const char *s)
MBSTRING_API char *php_mb_safe_strrchr(const char *s, unsigned int c,
size_t nbytes)
MBSTRING_API char *php_mb_safe_strrchr_ex(const char *s, unsigned int
c, size_t nbytes, const mbfl_encoding *enc)
Looking through the source code of the mbstring.c file I found a lot
of unused internal functions. It seems that this is just a bunch of
old junk.Examples:
MBSTRING_API size_t php_mb_mbchar_bytes_ex(const char *s, const
mbfl_encoding *enc)
MBSTRING_API size_t php_mb_mbchar_bytes(const char *s)
MBSTRING_API char *php_mb_safe_strrchr(const char *s, unsigned int c,
size_t nbytes)
MBSTRING_API char *php_mb_safe_strrchr_ex(const char *s, unsigned int
c, size_t nbytes, const mbfl_encoding *enc)
MBSTRING_API means that these functions are exported, and are available
for other extensions. As such, they may well be used.
--
Christoph M. Becker
On Thu, Jan 24, 2019 at 12:21 PM Legale Legage legale.legale@gmail.com
wrote:
Hello.
Looking through the source code of the mbstring.c file I found a lot
of unused internal functions. It seems that this is just a bunch of
old junk.Examples:
MBSTRING_API size_t php_mb_mbchar_bytes_ex(const char *s, const
mbfl_encoding *enc)
MBSTRING_API size_t php_mb_mbchar_bytes(const char *s)
MBSTRING_API char *php_mb_safe_strrchr(const char *s, unsigned int c,
size_t nbytes)
MBSTRING_API char *php_mb_safe_strrchr_ex(const char *s, unsigned int
c, size_t nbytes, const mbfl_encoding *enc)
How did you determine that these are unused? I'm seeing uses for all of
them in mbstring.c or php_mbregex.c
Nikita