Source of: /manual/en/migration52.newconf.php
<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/migration52.inc";
$setup = array (
'home' =>
array (
0 => 'index.php',
1 => 'PHP Manual',
),
'head' =>
array (
0 => 'UTF-8',
1 => 'en',
),
'this' =>
array (
0 => 'migration52.newconf.php',
1 => 'New INI Configuration Directives',
),
'up' =>
array (
0 => 'migration52.php',
1 => 'Migrating from PHP 5.1.x to PHP 5.2.x',
),
'prev' =>
array (
0 => 'migration52.class-constants.php',
1 => 'New Class Constants',
),
'next' =>
array (
0 => 'migration52.errorrep.php',
1 => 'Error Reporting',
),
);
$setup["toc"] = $TOC;
$setup["parents"] = $PARENTS;
manual_setup($setup);
manual_header();
?>
<div id="migration52.newconf" class="section">
<h2 class="title">New INI Configuration Directives</h2>
<p class="para">
New <var class="filename">php.ini</var> directives introduced in PHP 5.2.0:
</p>
<ul class="itemizedlist">
<li class="listitem">
<span class="simpara">
<a href="filesystem.configuration.php#ini.allow-url-include" class="link">allow_url_include</a>
</span>
<span class="simpara">
This useful option makes it possible to differentiate between
standard file operations on remote files, and the inclusion of
remote files. While the former is usually desirable, the latter can
be a security risk if used naively. Starting with PHP 5.2.0, you can
allow remote file operations while disallowing the inclusion of
remote files in local scripts. In fact, this is the default
configuration.
</span>
</li>
<li class="listitem">
<span class="simpara">
<a href="pcre.configuration.php#ini.pcre.backtrack-limit" class="link">pcre.backtrack_limit</a>
</span>
<span class="simpara">
PCRE's backtracking limit.
</span>
</li>
<li class="listitem">
<span class="simpara">
<a href="pcre.configuration.php#ini.pcre.recursion-limit" class="link">pcre.recursion_limit</a>
</span>
<span class="simpara">
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).
</span>
</li>
<li class="listitem">
<span class="simpara">
<a href="session.configuration.php#ini.session.cookie-httponly" class="link">session.cookie_httponly</a>
</span>
<span class="simpara">
Marks the cookie as accessible only through the HTTP protocol. This means
that the cookie won't be accessible by scripting languages, such as
JavaScript. This setting can effectively help to reduce identity theft
through XSS attacks (although it is not supported by all browsers).
</span>
</li>
</ul>
<p class="para">
New directives in PHP 5.2.2:
</p>
<ul class="itemizedlist">
<li class="listitem">
<span class="simpara">
<a href="info.configuration.php#ini.max-input-nesting-level" class="link">max_input_nesting_level</a>
</span>
<span class="simpara">
Limits how deep <a href="language.variables.external.php" class="link">input
variables</a> can be nested, default is 64.
</span>
</li>
</ul>
</div><?php manual_footer(); ?>