Skip to content

Commit 9cf851e

Browse files
committed
mbstring fix
1 parent 5b8c837 commit 9cf851e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ext/mbstring/tests/mbregex_stack_limit2.phpt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ function mb_trim_regex( $string, $chars = "", $chars_array = array() )
1818
$encoded_char_list = implode( "|", array_merge( array( "\s","\t","\n","\r", "\0", "\x0B" ), $chars_array ) );
1919

2020
$string = mb_ereg_replace( "^($encoded_char_list)*", "", $string );
21-
$string = mb_ereg_replace( "($encoded_char_list)*$", "", $string );
2221
return $string;
2322
}
2423

@@ -29,5 +28,5 @@ echo 'OK';
2928
?>
3029
--EXPECTF--
3130
Warning: mb_ereg_replace(): mbregex search failure in php_mbereg_replace_exec(): match-stack limit over in %s on line %d
32-
string(0) ""
31+
bool(false)
3332
OK

0 commit comments

Comments
 (0)