@@ -651,8 +651,8 @@ static char *php_mb_rfc1867_basename(const zend_encoding *encoding, char *filena
651
651
* the full path of the file on the user's filesystem, which means that unless
652
652
* the user does basename() they get a bogus file name. Until IE's user base drops
653
653
* to nill or problem is fixed this code must remain enabled for all systems. */
654
- s = php_mb_safe_strrchr_ex (filename , '\\' , filename_len , (const mbfl_encoding * )encoding );
655
- s2 = php_mb_safe_strrchr_ex (filename , '/' , filename_len , (const mbfl_encoding * )encoding );
654
+ s = php_mb_safe_strrchr (filename , '\\' , filename_len , (const mbfl_encoding * )encoding );
655
+ s2 = php_mb_safe_strrchr (filename , '/' , filename_len , (const mbfl_encoding * )encoding );
656
656
657
657
if (s && s2 ) {
658
658
if (s > s2 ) {
@@ -4229,8 +4229,7 @@ MBSTRING_API size_t php_mb_mbchar_bytes(const char *s)
4229
4229
}
4230
4230
/* }}} */
4231
4231
4232
- /* {{{ MBSTRING_API char *php_mb_safe_strrchr_ex() */
4233
- MBSTRING_API char * php_mb_safe_strrchr_ex (const char * s , unsigned int c , size_t nbytes , const mbfl_encoding * enc )
4232
+ MBSTRING_API char * php_mb_safe_strrchr (const char * s , unsigned int c , size_t nbytes , const mbfl_encoding * enc )
4234
4233
{
4235
4234
const char * p = s ;
4236
4235
char * last = NULL ;
@@ -4268,14 +4267,6 @@ MBSTRING_API char *php_mb_safe_strrchr_ex(const char *s, unsigned int c, size_t
4268
4267
}
4269
4268
return last ;
4270
4269
}
4271
- /* }}} */
4272
-
4273
- /* {{{ MBSTRING_API char *php_mb_safe_strrchr() */
4274
- MBSTRING_API char * php_mb_safe_strrchr (const char * s , unsigned int c , size_t nbytes )
4275
- {
4276
- return php_mb_safe_strrchr_ex (s , c , nbytes , MBSTRG (internal_encoding ));
4277
- }
4278
- /* }}} */
4279
4270
4280
4271
/* {{{ MBSTRING_API int php_mb_stripos() */
4281
4272
MBSTRING_API size_t php_mb_stripos (int mode , const char * old_haystack , size_t old_haystack_len , const char * old_needle , size_t old_needle_len , zend_long offset , const mbfl_encoding * enc )
0 commit comments