TypePHP 编译器
https://swoole.com/aot/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
412 B
17 lines
412 B
--TEST--
|
|
Test strpbrk() function : error conditions
|
|
--FILE--
|
|
<?php
|
|
$haystack = 'This is a Simple text.';
|
|
|
|
echo "-- Testing strpbrk() function with empty second argument --\n";
|
|
try {
|
|
strpbrk($haystack, '');
|
|
} catch (\ValueError $e) {
|
|
echo $e->getMessage() . "\n";
|
|
}
|
|
|
|
?>
|
|
--EXPECT--
|
|
-- Testing strpbrk() function with empty second argument --
|
|
strpbrk(): Argument #2 ($characters) must be a non-empty string
|
|
|