downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

Resource Types> <Installation
Last updated: Fri, 20 Nov 2009

view this page in

Runtime Configuration

The behaviour of these functions is affected by settings in php.ini.

PCRE Configuration Options
Name Default Changeable Changelog
pcre.backtrack_limit "100000" PHP_INI_ALL Available since PHP 5.2.0.
pcre.recursion_limit "100000" PHP_INI_ALL Available since PHP 5.2.0.

For further details and definitions of the PHP_INI_* modes, see the Where a configuration setting may be set.

Here's a short explanation of the configuration directives.

pcre.backtrack_limit integer

PCRE's backtracking limit.

pcre.recursion_limit integer

PCRE's recursion limit. Please note that if you set this value to a high number you may consume all the available process stack and eventually crash PHP (due to reaching the stack size limit imposed by the Operating System).



add a note add a note User Contributed Notes
Runtime Configuration
php dot z dot pbowers at spamgourmet dot com
27-Mar-2009 05:50
In my experience these "limits" result in a silent and inexplicable failure.  Don't hold your breath for an error message either on the screen nor in the log.

Resource Types> <Installation
Last updated: Fri, 20 Nov 2009
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites