ID: 36463 Updated by: [email protected] Reported By: sthapa at site5 dot com -Status: Feedback +Status: Bogus Bug Type: PCRE related Operating System: Linux PHP Version: 5.1.2 New Comment:
Ah, I thought you meant the count=500 case crashed. The higher numbers is simply overflowing libpcre's stack and you haven't set a sane limit. This is not a bug. This is a limitation of the pcre library and a configuration issue on your part. Add this to your php.ini: pcre.backtrack_limit = 10000 pcre.recursion_limit = 10000 And I bet your crash will go away. Previous Comments: ------------------------------------------------------------------------ [2010-01-20 23:08:12] liviu dot mirea at gmail dot com On CentOS 5.4, PHP 5.3.1, Apache/2.2.3: With "$count = 5947;" it works. With "$count = 5948;" or higher it silently crashes. Apache error log: "[Thu Jan 21 01:02:15 2010] [notice] child pid 18136 exit signal Segmentation fault (11)" rasmus at php at net, try giving it larger values. ------------------------------------------------------------------------ [2010-01-20 22:47:52] [email protected] Works fine on Linux ------------------------------------------------------------------------ [2010-01-20 22:44:30] liviu dot mirea at gmail dot com I tested it again and it crashed on my current configuration: PHP 5.3.1, Apache/2.2.14 (Win32), Windows 7 (64 bit) ------------------------------------------------------------------------ [2010-01-19 16:06:51] [email protected] Which web server? Apache? ------------------------------------------------------------------------ [2010-01-19 16:02:06] stijn_koopal at hotmail dot com Same problem with code of liviu dot mirea at gmail dot com. OS: Windows 7 (32 bit) PHP: 5.3.1 ------------------------------------------------------------------------ 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/36463 -- Edit this bug report at http://bugs.php.net/?id=36463&edit=1
