#40630 [Csd]: preg_match_all with a particular regexp causes run-away php/apache process
| From: | mfburdett at gmail dot com | Date: | Mon, 12 Mar 2007 00:59:42 +0000 |
| Subject: | #40630 [Csd]: preg_match_all with a particular regexp causes run-away php/apache process | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-110206@lists.php.net to get a copy of this message | ||
ID: 40630
User updated by: mfburdett at gmail dot com
Reported By: mfburdett at gmail dot com
Status: Closed
Bug Type: PCRE related
Operating System: FreeBSD 6.2
PHP Version: 5.2.1
New Comment:
This issue has been resolved in FreeBSD Ports.
http://www.freebsd.org/cgi/query-pr.cgi?pr=109542
http://www.freebsd.org/cgi/cvsweb.cgi/ports/lang/php5/Makefile.ext.diff?r1=1.41&r2=1.42&f=h
Previous Comments:
------------------------------------------------------------------------
[2007-02-26 18:22:19] tony2001@php.net
Great, marking as closed then.
Please reopen the report if the issue re-appears and/or you have any
additional information.
------------------------------------------------------------------------
[2007-02-26 18:18:31] mfburdett at gmail dot com
I tested cli php5.2-200702261730 and the issue appears to be resolved
in that snapshot.
------------------------------------------------------------------------
[2007-02-26 18:07:25] mfburdett at gmail dot com
Same issue running the script via PHP commandline. Am installing
snapshot in home directory now.
------------------------------------------------------------------------
[2007-02-26 16:46:19] tony2001@php.net
Does PHP CLI work for you?
What kind of Apache are you using? Version? MPM?
Can you provide a GDB backtrace?
Can you try building the snapshot (doesn't matter where, you don't have
to install it, just build it and run the script using sapi/cli/php).
------------------------------------------------------------------------
[2007-02-26 16:36:22] mfburdett at gmail dot com
<?php
$regexp = '%(?:^|,\ *)("(?>[^"]*)(?>""[^"]* )*"|(?:
[^",]*))%x';
$string = '';
preg_match_all($regexp, $string, $matches);
?>
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/40630
--
Edit this bug report at http://bugs.php.net/?id=40630&edit=1