Skip to content

Commit 38d9326

Browse files
committed
Update mb_strrpos() stub
We no longer accept the encoding as 3rd param, so we can make this a proper int argument.
1 parent 3042b2b commit 38d9326

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

ext/mbstring/mbstring.stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function mb_strlen(string $str, string $encoding = UNKNOWN): int {}
2727

2828
function mb_strpos(string $haystack, string $needle, int $offset = 0, string $encoding = UNKNOWN): int|false {}
2929

30-
function mb_strrpos(string $haystack, string $needle, $offset = UNBEK, string $encoding = UNKNOWN): int|false {}
30+
function mb_strrpos(string $haystack, string $needle, int $offset = 0, string $encoding = UNKNOWN): int|false {}
3131

3232
function mb_stripos(string $haystack, string $needle, int $offset = 0, string $encoding = UNKNOWN): int|false {}
3333

ext/mbstring/mbstring_arginfo.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,7 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mb_strpos, 0, 2, MAY_BE_LONG|MAY
5454
ZEND_ARG_TYPE_INFO(0, encoding, IS_STRING, 0)
5555
ZEND_END_ARG_INFO()
5656

57-
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mb_strrpos, 0, 2, MAY_BE_LONG|MAY_BE_FALSE)
58-
ZEND_ARG_TYPE_INFO(0, haystack, IS_STRING, 0)
59-
ZEND_ARG_TYPE_INFO(0, needle, IS_STRING, 0)
60-
ZEND_ARG_INFO(0, offset)
61-
ZEND_ARG_TYPE_INFO(0, encoding, IS_STRING, 0)
62-
ZEND_END_ARG_INFO()
57+
#define arginfo_mb_strrpos arginfo_mb_strpos
6358

6459
#define arginfo_mb_stripos arginfo_mb_strpos
6560

0 commit comments

Comments
 (0)