<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Runtime Configuration</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="pcre.installation.html">Installation</a></div> <div class="next" style="text-align: right; float: right;"><a href="pcre.resources.html">Resource Types</a></div> <div class="up"><a href="pcre.setup.html">Installing/Configuring</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="pcre.configuration" class="section"> <h2 class="title">Runtime Configuration</h2> <p class="simpara"> The behaviour of these functions is affected by settings in <var class="filename">php.ini</var>. </p> <p class="para"> <table class="doctable table"> <caption><strong>PCRE Configuration Options</strong></caption> <thead> <tr> <th>Name</th> <th>Default</th> <th>Changeable</th> <th>Changelog</th> </tr> </thead> <tbody class="tbody"> <tr> <td><a href="pcre.configuration.html#ini.pcre.backtrack-limit" class="link">pcre.backtrack_limit</a></td> <td>"1000000"</td> <td>PHP_INI_ALL</td> <td>Available since PHP 5.2.0.</td> </tr> <tr> <td><a href="pcre.configuration.html#ini.pcre.recursion-limit" class="link">pcre.recursion_limit</a></td> <td>"100000"</td> <td>PHP_INI_ALL</td> <td>Available since PHP 5.2.0.</td> </tr> </tbody> </table> For further details and definitions of the PHP_INI_* modes, see the <a href="configuration.changes.modes.html" class="xref">Where a configuration setting may be set</a>. </p> <p class="para">Here's a short explanation of the configuration directives.</p> <p class="para"> <dl> <dt id="ini.pcre.backtrack-limit"> <span class="term"> <em><code class="parameter">pcre.backtrack_limit</code></em> <span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span> </span> <dd> <p class="para"> PCRE's backtracking limit. Defaults to 100000 for PHP < 5.3.7. </p> </dd> </dt> <dt id="ini.pcre.recursion-limit"> <span class="term"> <em><code class="parameter">pcre.recursion_limit</code></em> <span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span> </span> <dd> <p class="para"> 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). </p> </dd> </dt> </dl> </p> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="pcre.installation.html">Installation</a></div> <div class="next" style="text-align: right; float: right;"><a href="pcre.resources.html">Resource Types</a></div> <div class="up"><a href="pcre.setup.html">Installing/Configuring</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>