ID: 47689 Updated by: paj...@php.net Reported By: vr...@php.net -Status: Assigned +Status: Bogus Bug Type: PCRE related Operating System: win32 only PHP Version: 5.*, 6CVS (2009-03-17) Assigned To: pajoye New Comment:
That's not something we can change for apache. You can fix the problem by increasing the stack size for apache using the following command: editbin /STACK:8000000 c:\apache22\bin\httpd.exe Sadly this tool is not available as a standalone app but VC Express should have it. Close (bogus) this bug as it is not something we can change in PHP. We can increase the stack at wish but it is apache dependent. FastCGI does not seem to have this problem (was not able to crash it). Previous Comments: ------------------------------------------------------------------------ [2009-06-18 13:27:10] peter dot swietoslawski at me dot com I'm experiencing similar crash on PHP 5.2.9-2, Apache 2.2.11, Vista SP2 if I run simple code like: <?php $content = ' <!-- Book Navigation Start --> <div> <ul class="menu"><li class="collapsed first">Web Services</li> <li class="collapsed">Integration Tools</li> <li class="leaf">Developer Group</li> <li class="leaf last">Developer Forum</li> </ul> <div class="page-links clear-block"> <a href="test/wws" class="page-next" title="Go to next page"> Web Services </a> </div> </div> <!-- Book Navigation End --> '; $pattern = '/<!-- Book Navigation Start -->((.|\s)+)<!-- Book Navigation End -->/i'; preg_match($pattern, $content, $book_nav); ?> However this works fine in PHP 5.2.8 and in CLI for 5.2.9-2. ------------------------------------------------------------------------ [2009-05-21 20:25:47] paj...@php.net Only wondering which impact has this change, have to test first before to increase the stack. ------------------------------------------------------------------------ [2009-04-25 17:37:45] j...@php.net Pierre, Nuno already gave the solution..? :) ------------------------------------------------------------------------ [2009-04-14 13:56:46] vr...@php.net Same result also with the code pasted here under Apache 2.2. ------------------------------------------------------------------------ [2009-04-14 13:52:16] paj...@php.net > Same result with VC9 TS and 500 lines under CLI. 500 lines? Not using the code you pasted here? ------------------------------------------------------------------------ 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/47689 -- Edit this bug report at http://bugs.php.net/?id=47689&edit=1