diff options
Diffstat (limited to 'ext/standard/string.c')
-rw-r--r-- | ext/standard/string.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/string.c b/ext/standard/string.c index a23c85c6d3..75162a19ca 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -6068,8 +6068,8 @@ PHP_FUNCTION(strpbrk) ZEND_PARSE_PARAMETERS_END(); if (!ZSTR_LEN(char_list)) { - php_error_docref(NULL, E_WARNING, "The character list cannot be empty"); - RETURN_FALSE; + zend_value_error("The character list cannot be empty"); + return; } for (haystack_ptr = ZSTR_VAL(haystack); haystack_ptr < (ZSTR_VAL(haystack) + ZSTR_LEN(haystack)); ++haystack_ptr) { |