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

Reply via email to