------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugs.exim.org/show_bug.cgi?id=861 Summary: Using xampp PCRE can crash apache connection Product: PCRE Version: 7.8 Platform: Other OS/Version: Windows Status: NEW Severity: bug Priority: medium Component: Code AssignedTo: [email protected] ReportedBy: [email protected] CC: [email protected] Hello, I'm using PCRE to evaluate VBS source codes. To do this I use the current xampp version (1.7.1 / win32). During the evaluation process I've modified a regular expression. After that my browser told me "the server has reset the connection". The code is the following: $sContent = 'Call ABCDEFGHJIKLMNOPQRSTUVWXYZ("Lorem Ipsum dolor sit amet, consectetuer elitr\'" & VARIABLE & "\'" & vbCRLF & vbCRLF & "Lorem ipsum dolor sit amet conset" & vbCRLF & vbCRLF & "Lorem ipsum dolor sit amet consectetuer sadipscing.")'; echo preg_match('/^(?:[^"]|"(?:[^"]|"")*")*(?:var_alloc)\s*\(?\s*"[^"]+".*$/i', $sContent); As you can see the string (which shall be evaluated) is very long. I found out that error depends on three things: 1. The length of the evaluation string 2. The |"" in the pattern (which is wrong for VBS evaluation, but it was a test) 3. The "\'" in the evaluation string If the pattern whould be wrong then only a php error should occur. An other interesting fact is that the php script works fine if I execute the script with the php.exe directly. Hence the error depends on the combination apache - php - pcre Kind Regards David Gausmann (Bananen-Joe) -- Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email -- ## List details at http://lists.exim.org/mailman/listinfo/pcre-dev
