ID: 27216 Updated by: [EMAIL PROTECTED] Reported By: list at fredfred dot net -Status: Open +Status: Bogus -Bug Type: *Regular Expressions +Bug Type: PCRE related Operating System: Linux,Windows XP PHP Version: 4.3.4 New Comment:
Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php You should also have searched the bug database for previous reports about this same issue. (there are dozens of them!) This is PCRE limit you're hitting, not PHP bug. Previous Comments: ------------------------------------------------------------------------ [2004-02-10 21:03:51] list at fredfred dot net Description: ------------ When I try use preg_match_all( $regexp, $a, $vysl); it crashes when $a contains text in format like in file here: http://www.contipromotor.cz/download/phpBug3800chars.htm. Basically it contains 'abbba(3799 times char s or \r\n)xa' Just delete the last 'x' and it works fine. Reproduce code: --------------- $a = I read content of file http://www.contipromotor.cz/download/phpBug3800chars.htm $regexp = "/a(.*)a((?:.|\n)*?)a/i"; if(preg_match_all( $regexp, $a, $vysl)) echo "found"; else echo "not found"; Expected result: ---------------- "found" or "not found" Actual result: -------------- CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=27216&edit=1