php-8.0.30-src/ext/pcre/tests/bug75089.phpt

10 lines
206 B
PHP

--TEST--
Bug #75089 (preg_grep() is not reporting PREG_BAD_UTF8_ERROR after first input string)
--FILE--
<?php
preg_grep('#\d#u', ['a', "1\xFF"/*, 'c'*/]);
var_dump(preg_last_error());
?>
--EXPECT--
int(4)