We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d59eced commit a31ecc8Copy full SHA for a31ecc8
ext/standard/string.c
@@ -5963,7 +5963,7 @@ PHP_FUNCTION(strpbrk)
5963
ZEND_PARSE_PARAMETERS_END();
5964
5965
if (!ZSTR_LEN(char_list)) {
5966
- zend_argument_value_error(2, "must be a non-empty list");
+ zend_argument_value_error(2, "must be a non-empty string");
5967
RETURN_THROWS();
5968
}
5969
ext/standard/tests/strings/strpbrk_error.phpt
@@ -20,4 +20,4 @@ try {
20
?>
21
--EXPECT--
22
-- Testing strpbrk() function with empty second argument --
23
-strpbrk(): Argument #2 ($char_list) must be a non-empty list
+strpbrk(): Argument #2 ($char_list) must be a non-empty string
0 commit comments