bug75089.phpt 206 B

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