Req #51103 [Com]: a warning should be displayed if there is a pcre error

From: Date: Wed, 22 Dec 2010 19:15:10 +0000
Subject: Req #51103 [Com]: a warning should be displayed if there is a pcre error
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-157275@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=51103&edit=1 ID: 51103 Comment by: yehuda+php at ymkatz dot net Reported by: henrik dot gebauer at web dot de Summary: a warning should be displayed if there is a pcre error Status: Open Type: Feature/Change Request Package: PCRE related Operating System: Irrelevant PHP Version: 5.2.12 Block user comment: N Private report: N New Comment: Yes, I spent twenty minutes troubleshooting a script that ran fine on one machine but returned no results on another machine. Eventually, I found that pcre.recursion_limit was set to 1, but with a warning that there was an error, I would have found it right way. Previous Comments: ------------------------------------------------------------------------ [2010-02-21 00:53:25] henrik dot gebauer at web dot de Description: ------------ PHP should display a warning if there is a PCRE error, that is if preg_last_error() != PREG_NO_ERROR. This would make it easier to find bugs. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=51103&edit=1

« previous php.bugs (#157275) next »