xref: /PHP-8.0/ext/pcre/tests/bug38600.phpt (revision 1f655451)
1--TEST--
2Bug #38600 (infinite loop in pcre with extended class)
3--FILE--
4<?php
5$foo = 'bla bla bla';
6
7var_dump(preg_match('/(?<!\w)(0x[\p{N}]+[lL]?|[\p{Nd}]+(e[\p{Nd}]*)?[lLdDfF]?)(?!\w)/', $foo, $m));
8var_dump($m);
9
10?>
11--EXPECT--
12int(0)
13array(0) {
14}
15