dis-bench / src /php /php-src /ext /pcre /tests /bug38600.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
251 Bytes
--TEST--
Bug #38600 (infinite loop in pcre with extended class)
--FILE--
<?php
$foo = 'bla bla bla';
var_dump(preg_match('/(?<!\w)(0x[\p{N}]+[lL]?|[\p{Nd}]+(e[\p{Nd}]*)?[lLdDfF]?)(?!\w)/', $foo, $m));
var_dump($m);
?>
--EXPECT--
int(0)
array(0) {
}