xref: /PHP-8.2/ext/pcre/tests/bug75457.phpt (revision d1646e32)
1--TEST--
2Bug #75457 (heap-use-after-free in php7.0.25)
3--FILE--
4<?php
5$pattern = "/(((?(?C)0?=))(?!()0|.(?0)0)())/";
6var_dump(preg_match($pattern, "hello"));
7?>
8--EXPECTF--
9Warning: preg_match(): Compilation failed: assertion expected after (?( or (?(?C) at offset 8 in %sbug75457.php on line %d
10bool(false)
11