mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Fix incorrect zpp parameter count in mb_substr() / mb_strcut()
These functions only accept 4 params.
This commit is contained in:
parent
a7e84e2e02
commit
9b4094c3d7
1 changed files with 2 additions and 2 deletions
|
@ -2130,7 +2130,7 @@ PHP_FUNCTION(mb_substr)
|
|||
zend_bool len_is_null = 1;
|
||||
mbfl_string string, result, *ret;
|
||||
|
||||
ZEND_PARSE_PARAMETERS_START(2, 5)
|
||||
ZEND_PARSE_PARAMETERS_START(2, 4)
|
||||
Z_PARAM_STRING(str, str_len)
|
||||
Z_PARAM_LONG(from)
|
||||
Z_PARAM_OPTIONAL
|
||||
|
@ -2194,7 +2194,7 @@ PHP_FUNCTION(mb_strcut)
|
|||
zend_bool len_is_null = 1;
|
||||
mbfl_string string, result, *ret;
|
||||
|
||||
ZEND_PARSE_PARAMETERS_START(2, 5)
|
||||
ZEND_PARSE_PARAMETERS_START(2, 4)
|
||||
Z_PARAM_STRING(string_val, string.len)
|
||||
Z_PARAM_LONG(from)
|
||||
Z_PARAM_OPTIONAL
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue