<?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 => 'ja',
  ),
  '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' => 'ja',
    '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.string.php" class="type string">string</a></span> の代わりに
    <span class="type"><a href="language.types.array.php" class="type array">array</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: Autoconf 2.64 以上が PHP をビルドするのに必須になりました。
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     Unix: <code class="literal">--with-pdo-oci</code> configure 引数に対して、Oracle Instant Client のバージョン指定は不要になりました。
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     Unix: <code class="literal">--enable-gd-native-ttf</code> configure 引数は削除されました。これは PHP 5.5.0 以降では使われていませんでした。
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     Windows: <code class="literal">--with-config-profile</code> configure 引数が追加されました。
     この引数は、 <var class="filename">config.nice.bat</var> ファイルのような形で、特定の configure引数を保存するのに使えます。
    </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 ライブラリを使って PHP がコンパイルされた場合に
     <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> 関数は、truecolor 画像を truecolor 画像として保存するようになりました。
     以前は、パレットに変換していました。
    </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> 拡張モジュールは、PHPコアから 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); ?>