migration52.other.html

来自「php的帮助文档,涉及到PHP的案例和基本语法,以及实际应用内容」· HTML 代码 · 共 55 行

HTML
55
字号
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head>  <title>Other Enhancements</title>  <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="migration52.html">Migrating from PHP 5.1.x to PHP 5.2.x</a></div> <div class="next" style="text-align: right; float: right;"><a href="migration51.html">Migrating from PHP 5.0.x to PHP 5.1.x</a></div> <div class="up"><a href="migration52.html">Migrating from PHP 5.1.x to PHP 5.2.x</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div id="migration52.other" class="section">  <h2 class="title">Other Enhancements</h2>  <ul class="itemizedlist">   <li class="listitem">    <span class="simpara">     Improved memory manager and increased default memory limit.    </span>    <span class="simpara">     The new memory manager allocates less memory and works faster than the     previous incarnation. It allocates memory from the system in large blocks,     and then manages the heap by itself. The <i>memory_limit</i> value in <var class="filename">php.ini</var> is     checked, not for each <i>emalloc()</i> call (as before), but for actual blocks     requested from the system. This means that <i>memory_limit</i> is far more     accurate than it used to be, since the old memory manager didn&#039;t calculate     all the memory overhead used by the <i>malloc</i> library.    </span>    <span class="simpara">     Thanks to this new-found accuracy memory usage may appear to have increased,     although actually it has not. To accommodate this apparent increase, the     default <i>memory_limit</i> setting was also increased - from 8 to 16 megabytes.    </span>   </li>   <li class="listitem">    <span class="simpara">     Added support for constructors in interfaces to force constructor signature     checks in implementations.    </span>    <span class="simpara">     Starting with PHP 5.2.0, interfaces can have constructors. However, if you choose     to declare a constructor in an interface, each class implementing that interface     MUST include a constructor with a signature matching that of the base interface     constructor. By &#039;signature&#039; we mean the parameter and return type definitions,     including any type hints and including whether the data is passed by reference     or by value.    </span>   </li>  </ul> </div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="migration52.html">Migrating from PHP 5.1.x to PHP 5.2.x</a></div> <div class="next" style="text-align: right; float: right;"><a href="migration51.html">Migrating from PHP 5.0.x to PHP 5.1.x</a></div> <div class="up"><a href="migration52.html">Migrating from PHP 5.1.x to PHP 5.2.x</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?