xref: /PHP-7.4/ext/pcre/tests/bug75089.phpt (revision ef90e37b)
1--TEST--
2Bug #75089 (preg_grep() is not reporting PREG_BAD_UTF8_ERROR after first input string)
3--FILE--
4<?php
5preg_grep('#\d#u', ['a', "1\xFF"/*, 'c'*/]);
6var_dump(preg_last_error());
7?>
8--EXPECT--
9int(4)
10