Edit report at https://bugs.php.net/bug.php?id=61068&edit=1
ID: 61068 User updated by: bald at epf dot pl 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: Setting ThreadStackSize to 295536 works for me (Windows 7). Thanks. P.S. This regular expression (~(</?)(\w*)((/(?!>)|[^/>])*)(/?>)~) comes from Zend Framework (HTML filter class), so that may cause problems on application based on Zend Framework. Previous Comments: ------------------------------------------------------------------------ [2012-02-22 09:16:45] paj...@php.net @jbond simply increase the apache binaries default stack to 8MB (process) using editbin and it should work for most php users. ------------------------------------------------------------------------ [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] paj...@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] ahar...@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 ------------------------------------------------------------------------ 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