preg_match_all() with a particular regexp causes a run-away Apache/PHP process which consumes all available CPU. This is on amd64 architecture; FreeBSD 6.2; PCRE 7.0 and PHP 5.2.1 installed through ports. Also posted here: http://bugs.php.net/bug.php?id=40630 How-To-Repeat: Reproduce code: --------------- <?php $regexp = '%(?:^|,\ *)("(?>[^"]*)(?>""[^"]* )*"|(?: [^",]*))%x'; preg_match_all($regexp, $string, $matches); Expected result: ---------------- It should compile and execute. Actual result: -------------- Process consumes all available CPU until killed.
Responsible Changed From-To: freebsd-ports-bugs->ale Over to maintainer
This seems to be fixed in the latest PHP 5.2 snapshot. I can only reproduce on amd64.
State Changed From-To: open->closed Should be fixed in cvs.