Bug #61068 [Nab]: Regexp crashes http server
| From: | pajoye@php.net | Date: | Wed, 22 Feb 2012 09:16:46 +0000 |
| Subject: | Bug #61068 [Nab]: Regexp crashes http server | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-167725@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=61068&edit=1
ID: 61068
Updated by: pajoye@php.net
Reported by: bald at epf dot pl
Summary: Regexp crashes http server
Status: Not a bug
Type: Bug
Package: PCRE related
Operating System: Windows 7
PHP Version: 5.3.10
Block user comment: N
Private report: N
New Comment:
@jbond
simply increase the apache binaries default stack to 8MB (process) using editbin
and it should work for most php users.
Previous Comments:
------------------------------------------------------------------------
[2012-02-22 08:29:45] JBlond at gmail dot com
It would be cool to know which ThreadStackSize in the httpd.conf is "enough" to run your
code.
------------------------------------------------------------------------
[2012-02-22 07:37:25] pajoye@php.net
It is not something PHP is responsible for. The stacksize of Apache is too
small, it works in PHP's cli because PHP builds have a larger default stacksize.
You can increase it using this config option:
http://httpd.apache.org/docs/2.2/mod/mpm_common.html#ThreadStackSize
or change the default stacksize of the Apache binaries:
http://msdn.microsoft.com/en-us/library/xd3shwhf.aspx
------------------------------------------------------------------------
[2012-02-15 00:57:08] aharvey@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php
for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php
for Win32
Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.
Works for me, too. I don't think we can really progress this without a backtrace.
------------------------------------------------------------------------
[2012-02-13 11:37:25] bald at epf dot pl
Apache version: 2.2.22
I downloaded thread safe version of PHP.
Works fine when I use command line:
php test.php
------------------------------------------------------------------------
[2012-02-13 10:43:55] bald at epf dot pl
Sorry, it's Windows 7. Apache logs does not really say anything. This regular expression just
kills my httpd.exe proccess. Works fine without character < at the begining of the $string
variable.
------------------------------------------------------------------------
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=61068
--
Edit this bug report at https://bugs.php.net/bug.php?id=61068&edit=1