Skip to content

Commit e452334

Browse files
committed
Fix zpp mismatch
1 parent 6656fab commit e452334

File tree

3 files changed

+11
-19
lines changed

3 files changed

+11
-19
lines changed

ext/intl/grapheme/grapheme_string.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,18 +207,19 @@ PHP_FUNCTION(grapheme_strrpos)
207207
{
208208
char *haystack, *needle;
209209
char *locale = "";
210-
size_t haystack_len, needle_len;
210+
size_t haystack_len, needle_len, locale_len;
211211
zend_long loffset = 0;
212212
int32_t offset = 0;
213213
zend_long strength = UCOL_DEFAULT_STRENGTH;
214214
zend_long ret_pos;
215215
int is_ascii;
216216

217-
ZEND_PARSE_PARAMETERS_START(2, 4)
217+
ZEND_PARSE_PARAMETERS_START(2, 5)
218218
Z_PARAM_STRING(haystack, haystack_len)
219219
Z_PARAM_STRING(needle, needle_len)
220220
Z_PARAM_OPTIONAL
221221
Z_PARAM_LONG(loffset)
222+
Z_PARAM_STRING(locale, locale_len)
222223
Z_PARAM_LONG(strength)
223224
ZEND_PARSE_PARAMETERS_END();
224225

ext/intl/php_intl.stub.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -440,13 +440,13 @@ function grapheme_strpos(string $haystack, string $needle, int $offset = 0, stri
440440

441441
function grapheme_stripos(string $haystack, string $needle, int $offset = 0, string $locale = "", int $strength = UCOL_DEFAULT_STRENGTH): int|false {}
442442

443-
function grapheme_strrpos(string $haystack, string $needle, int $offset = 0, int $strength = UCOL_DEFAULT_STRENGTH): int|false {}
443+
function grapheme_strrpos(string $haystack, string $needle, int $offset = 0, string $locale = "", int $strength = UCOL_DEFAULT_STRENGTH): int|false {}
444444

445445
function grapheme_strripos(string $haystack, string $needle, int $offset = 0, string $locale = "", int $strength = UCOL_DEFAULT_STRENGTH): int|false {}
446446

447-
function grapheme_substr(string $string, int $offset, ?int $length = null, int $strength = UCOL_DEFAULT_STRENGTH): string|false {}
447+
function grapheme_substr(string $string, int $offset, ?int $length = null, string $locale = "", int $strength = UCOL_DEFAULT_STRENGTH): string|false {}
448448

449-
function grapheme_strstr(string $haystack, string $needle, bool $beforeNeedle = false, int $strength = UCOL_DEFAULT_STRENGTH): string|false {}
449+
function grapheme_strstr(string $haystack, string $needle, bool $beforeNeedle = false, string $locale = "", int $strength = UCOL_DEFAULT_STRENGTH): string|false {}
450450

451451
function grapheme_stristr(string $haystack, string $needle, bool $beforeNeedle = false, string $locale = "", int $strength = UCOL_DEFAULT_STRENGTH): string|false {}
452452

ext/intl/php_intl_arginfo.h

Lines changed: 5 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)