ID: 37550 Updated by: [EMAIL PROTECTED] Reported By: Arne dot Heizmann at csr dot com -Status: Open +Status: Bogus Bug Type: Regexps related Operating System: Windows 2000 PHP Version: 5.1.4 New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Due to the volume of reports we can not explain in detail here why your report is not a bug. The support channels will be able to provide an explanation for you. Thank you for your interest in PHP. You reached the backtrace limit (BACKTRACE_LIMIT_ERROR). With php 5.2 and up (cvs only yet), you can check the last preg error with preg_last_error. Previous Comments: ------------------------------------------------------------------------ [2006-05-22 15:12:56] Arne dot Heizmann at csr dot com Description: ------------ preg_match() stops working properly at some minimum string length. Reproduce code: --------------- <? $str1 = '[EMAIL PROTECTED]@d' . str_repeat ('=', 3333326); $str2 = '[EMAIL PROTECTED]@d' . str_repeat ('=', 3333327); $regexp = '/^(.*)@(.*)%(.*)$/si'; echo preg_match ($regexp, $str1) ? "Correct " : "Wrong "; // works correctly echo preg_match ($regexp, $str2) ? "Correct " : "Wrong "; // exhibits the bug ?> Expected result: ---------------- "Correct Correct " Actual result: -------------- "Correct Wrong " ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=37550&edit=1