<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/migration72.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'zh',
  ),
  'this' => 
  array (
    0 => 'migration72.other-changes.php',
    1 => '其他变更',
    2 => '其他变更',
  ),
  'up' => 
  array (
    0 => 'migration72.php',
    1 => '从 PHP 7.1.x 移植到 PHP 7.2.x',
  ),
  'prev' => 
  array (
    0 => 'migration72.deprecated.php',
    1 => 'PHP 7.2.x 中废弃的功能',
  ),
  'next' => 
  array (
    0 => 'migration71.php',
    1 => '从 PHP 7.0.x 移植到 PHP 7.1.x',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'zh',
    'path' => 'appendices/migration72/other-changes.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="migration72.other-changes" class="sect1">
 <h2 class="title">其他变更</h2>

 <div class="sect2" id="migration72.other-changes.utf8_-functions-to-ext-standard">
  <h3 class="title">移动 <span class="function"><a href="function.utf8-encode.php" class="function">utf8_encode()</a></span> 和 <span class="function"><a href="function.utf8-decode.php" class="function">utf8_decode()</a></span></h3>

  <p class="para">
   <span class="function"><a href="function.utf8-encode.php" class="function">utf8_encode()</a></span> 和 <span class="function"><a href="function.utf8-decode.php" class="function">utf8_decode()</a></span> 现在已经作为字符串处理函数移到标准扩展中，
   在此之前需要启用  <a href="book.xml.php" class="link">XML</a>  扩展才能使用。
  </p>
 </div>

 <div class="sect2" id="migration72.other-changes.mail">
  <h3 class="title"><span class="function"><a href="function.mail.php" class="function">mail()</a></span> 和 <span class="function"><a href="function.mb-send-mail.php" class="function">mb_send_mail()</a></span> 的变更</h3>

  <p class="para">
   <span class="function"><a href="function.mail.php" class="function">mail()</a></span> 和
   <span class="function"><a href="function.mb-send-mail.php" class="function">mb_send_mail()</a></span> 函数中的 $additional_headers 参数变更为 <span class="type"><a href="language.types.array.php" class="type array">array</a></span>，此前为
   <span class="type"><a href="language.types.string.php" class="type string">string</a></span>。
  </p>
 </div>

 <div class="sect2" id="migration72.other-changes.lmdb-support">
  <h3 class="title">支持 LMDB</h3>

  <p class="para">
   <a href="book.dba.php" class="link">DBA</a> 扩展现在已经支持 LMDB。
  </p>
 </div>

 <div class="sect2" id="migration72.other-changes.build-system">
  <h3 class="title">PHP 构建系统的变更</h3>

  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     Unix: 构建 PHP 需要 Autoconf 2.64 或更高的版本。
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     Unix: <code class="literal">--with-pdo-oci</code>
     配置选项不再需要指定 Oracle Instant Client 的版本号数字。
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     Unix: 移除了 <code class="literal">--enable-gd-native-ttf</code>
     配置参数。自 PHP 5.5.0 以来就已经不再使用。
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     Windows: 添加了 <code class="literal">--with-config-profile</code> 配置参数。
     可用于保存细节配置，就像是神奇的
     <var class="filename">config.nice.bat</var> 文件。
    </span>
   </li>
  </ul>
 </div>

 <div class="sect2" id="migration72.other-changes.image">
  <h3 class="title"><a href="book.image.php" class="link">GD</a>的变更</h3>

  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     当编译时使用了系统的 libgd，<span class="function"><a href="function.imageantialias.php" class="function">imageantialias()</a></span>
     也能生效。
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.imagegd.php" class="function">imagegd()</a></span>
     以真彩色储存真彩色图像。在此之前，会转化为调色板图像。
    </span>
   </li>
  </ul>
 </div>

 <div class="sect2" id="migration72.other-changes.mcrypt">
  <h3 class="title">移动 <a href="book.mcrypt.php" class="link">MCrypt</a> 到 PECL</h3>

  <p class="para">
   <a href="book.mcrypt.php" class="link">MCrypt</a> 扩展从内核移动到 PECL。
   考虑到 mcrypt 库自 2007 年以来未见任何更新，不再建议使用。
   代替品即可以用
   <a href="book.openssl.php" class="link">OpenSSL</a>，也可以用
   <a href="book.sodium.php" class="link">Sodium</a>。
  </p>
 </div>

 <div class="sect2" id="migration72.other-changes.session-module-name">
  <h3 class="title"><span class="function"><a href="function.session-module-name.php" class="function">session_module_name()</a></span></h3>

  <p class="para">
   传递给 <span class="function"><a href="function.session-module-name.php" class="function">session_module_name()</a></span> 函数的模块名不允许为
   <code class="literal">&quot;user&quot;</code>，将会抛出一个
   <strong><code><a href="errorfunc.constants.php#constant.e-recoverable-error">E_RECOVERABLE_ERROR</a></code></strong>，之前版本会忽略这个问题。
  </p>
 </div>

</div><?php manual_footer($setup); ?>