xref: /PHP-8.3/ext/pcre/tests/bug76127.phpt (revision 661bce47)
1--TEST--
2Bug #76127: preg_split does not raise an error on invalid UTF-8
3--FILE--
4<?php
5var_dump(preg_split("/a/u", "a\xff"));
6var_dump(preg_last_error() == PREG_BAD_UTF8_ERROR);
7?>
8--EXPECT--
9bool(false)
10bool(true)
11