Edit report at https://bugs.php.net/bug.php?id=52818&edit=1
ID: 52818 Comment by: eugenia at linux dot com Reported by: svimik at mail dot ru Summary: PCRE segfault Status: Not a bug Type: Bug Package: Reproducible crash Operating System: Debian-50-lenny-64 PHP Version: 5.3.3 Block user comment: N Private report: N New Comment: change the pcre.recursion_limit directive prevents a stack overflow but not correct the problem with preg_match. After the change, the preg_match function not find a coincidence in the same context (maybe because it stops the recursion) but finds a coincidence in a reduced context. So, why do you think is not a bug? Give me an exact explanation, tell me how I can solving this problem and I will tell you that it's not a bug. But now, is a bug. Previous Comments: ------------------------------------------------------------------------ [2010-09-14 17:45:55] paj...@php.net It does not matter if you use apache or not, same cause, same solution. I mentioned apache as an example. ------------------------------------------------------------------------ [2010-09-14 17:32:26] svimik at mail dot ru >Because it depends on your apache builds As I said, I'm NOT using Apache, I run this script directly in console, by "php -f file.php" command. >In any case, that's not something we can fix. Why is not possible to catch this error? ------------------------------------------------------------------------ [2010-09-14 17:06:21] paj...@php.net Because it depends on your apache builds and configurations. You can increase both using php.ini and with some tools on unix (don't remember which, but there is other reports about how to do it here). In any case, that's not something we can fix. ------------------------------------------------------------------------ [2010-09-14 16:27:11] svimik at mail dot ru Why stack overflow is not a bug? ------------------------------------------------------------------------ [2010-09-14 13:09:14] ahar...@php.net I can replicate this on a stock trunk build, and it is (as usual) a simple stack overflow. Closing. ------------------------------------------------------------------------ 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 https://bugs.php.net/bug.php?id=52818 -- Edit this bug report at https://bugs.php.net/bug.php?id=52818&edit=1