1
0
mirror of https://github.com/php/php-src.git synced 2026-03-31 12:42:29 +02:00

Fix incorrect zpp parameter count in mb_substr() / mb_strcut()

These functions only accept 4 params.
This commit is contained in:
Nikita Popov
2020-10-13 17:44:56 +02:00
parent a7e84e2e02
commit 9b4094c3d7

View File

@@ -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