mirror of
https://github.com/php/doc-ja.git
synced 2026-03-23 22:52:11 +01:00
sync with en.
git-svn-id: https://svn.php.net/repository/phpdoc/ja/trunk@323768 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 6833da6028f25498b50f57ca62af49ccca7e6e03 Maintainer: takagi Status: ready -->
|
||||
<!-- EN-Revision: 9a9a50a766366d4b3701aa868c2e2c1ab4b9d960 Maintainer: takagi Status: ready -->
|
||||
<!-- CREDITS: hirokawa,shimooka -->
|
||||
|
||||
<section xml:id="ini.core" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
@@ -91,7 +91,7 @@
|
||||
<entry><link linkend="ini.allow-call-time-pass-reference">allow_call_time_pass_reference</link></entry>
|
||||
<entry>"1"</entry>
|
||||
<entry>PHP_INI_SYSTEM|PHP_INI_PERDIR</entry>
|
||||
<entry>PHP 4.0.0 で PHP_INI_ALL</entry>
|
||||
<entry>PHP 4.0.0 で PHP_INI_ALL。PHP 5.4.0 で削除されました。</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><link linkend="ini.disable-functions">disable_functions</link></entry>
|
||||
@@ -251,15 +251,40 @@
|
||||
指定すると良いでしょう。
|
||||
</para>
|
||||
<para>
|
||||
PHP 5 では <literal>allow_call_time_pass_reference</literal> は非推奨となります。
|
||||
PHP 5.3.0 より前のバージョンではこの機能を使うと
|
||||
<constant>E_COMPILE_WARNING</constant> が発生し、PHP 5.3.0 以降では
|
||||
<constant>E_DEPRECATED</constant> となります。
|
||||
<!-- FIXME PHP_6 このディレクティブは PHP6 で削除されます。-->
|
||||
<link linkend="language.references">参照に関する説明</link>も参照ください。
|
||||
</para>
|
||||
<para>
|
||||
<link linkend="language.references">参照に関する説明</link>も
|
||||
参照ください。
|
||||
<table>
|
||||
<title><literal>allow_call_time_pass_reference</literal> の変更履歴</title>
|
||||
<tgroup cols="2">
|
||||
<thead>
|
||||
<row>
|
||||
<entry>&Version;</entry>
|
||||
<entry>&Description;</entry>
|
||||
</row>
|
||||
</thead>
|
||||
<tbody>
|
||||
<row>
|
||||
<entry>5.4.0</entry>
|
||||
<entry>
|
||||
PHP から削除されました。
|
||||
</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>5.3.0</entry>
|
||||
<entry>
|
||||
<constant>E_DEPRECATED</constant> レベルのエラーが発生するようになりました。
|
||||
</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>5.0.0</entry>
|
||||
<entry>
|
||||
非推奨となり、<constant>E_COMPILE_WARNING</constant> レベルのエラーが発生するようになりました。
|
||||
</entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</table>
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
@@ -865,7 +890,7 @@
|
||||
ディレクティブの影響を受けます。
|
||||
</para>
|
||||
</note>
|
||||
&warn.deprecated.feature-5-3-0.removed-6-0-0;
|
||||
&warn.deprecated.feature-5-3-0.removed-5-4-0;
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
@@ -905,7 +930,7 @@
|
||||
<simpara>
|
||||
このディレクティブは PHP 5.0.0 で利用可能となりました。
|
||||
</simpara>
|
||||
&warn.deprecated.feature-5-3-0.removed-6-0-0;
|
||||
&warn.deprecated.feature-5-3-0.removed-5-4-0;
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 9c27040f090acd30375517c6c6b9fa8ac334fb8c Maintainer: takagi Status: ready -->
|
||||
<!-- EN-Revision: b704d368833c9b7a93a2a46bdb128b0e767285ab Maintainer: takagi Status: ready -->
|
||||
<appendix xml:id="migration54" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<title>PHP 5.3.x から PHP 5.4.x への移行</title>
|
||||
<simpara>
|
||||
@@ -14,24 +14,11 @@
|
||||
<section xml:id="migration54.changes">
|
||||
<title>PHP 5.4.x における変更点</title>
|
||||
<simpara>
|
||||
<!-- Placehold for "What has changed in PHP 5.4.x". -->
|
||||
|
||||
<!-- Current content for the 5.3.x changes
|
||||
|
||||
Most improvements in PHP 5.3.x have no impact on existing code. There are
|
||||
a <link linkend="migration53.incompatible">few incompatibilities</link>
|
||||
and <link linkend="migration53.new-features">new features</link> that should
|
||||
be considered, and code should be tested before switching PHP
|
||||
versions in production environments.
|
||||
|
||||
-->
|
||||
PHP 5.4.x で改良された点のほどんどは、既存のコードに影響を及ぼしません。ただ、
|
||||
<link linkend="migration54.incompatible">互換性がない変更</link> や 考慮すべき
|
||||
<link linkend="migration54.new-features">新機能</link> があります。よって、
|
||||
実運用環境の PHP をこのバージョンにあげる前に、あらゆるコードをテストすべきです。
|
||||
</simpara>
|
||||
<warning>
|
||||
<simpara>
|
||||
このリストは未完成です。
|
||||
PHP 5.4 がリリースされるまで頻繁に書き換えられることでしょう。
|
||||
</simpara>
|
||||
</warning>
|
||||
<simpara>
|
||||
5.3.x より古いバージョンの PHP からのアップグレードの場合は、
|
||||
以下の関連ドキュメントも参照ください。
|
||||
@@ -69,7 +56,7 @@
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<simpara>
|
||||
<link linkend="features.safe-mode"><literal>セーフモード</literal></link>
|
||||
<link linkend="features.safe-mode">セーフモード</link>
|
||||
をサポートしなくなりました。セーフモードでの動作を前提とするアプリケーションは、
|
||||
セキュリティに関する調整が必要となります。
|
||||
</simpara>
|
||||
@@ -81,7 +68,7 @@
|
||||
</simpara>
|
||||
<simpara>
|
||||
<function>get_magic_quotes_gpc</function> と <function>get_magic_quotes_runtime</function>
|
||||
は常に false を返すようになりました。<function>set_magic_quotes_runtime</function> を実行すると
|
||||
は常に &false; を返すようになりました。<function>set_magic_quotes_runtime</function> を実行すると
|
||||
<constant>E_CORE_ERROR</constant> が発生します。
|
||||
</simpara>
|
||||
</listitem>
|
||||
@@ -100,8 +87,8 @@
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
<link linkend="control-structures.break"><literal>break</literal></link>
|
||||
と <link linkend="control-structures.continue"><literal>continue</literal></link>
|
||||
<link linkend="control-structures.break">break</link>
|
||||
と <link linkend="control-structures.continue">continue</link>
|
||||
への引数として、変数は使えなくなりました。つまり、
|
||||
<literal>break 1 + foo() * $bar;</literal> などとは書けなくなったということです。
|
||||
静的な引数を使うのはもちろん可能で、<literal>break 2;</literal> などは使えます。
|
||||
@@ -229,6 +216,50 @@
|
||||
<link linkend="language.oop5.traits">トレイト</link>のサポートが追加されました。
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
配列の短縮構文が追加されました。<literal>$a = [1, 2, 3, 4];</literal> や
|
||||
<literal>$a = ['one' => 1, 'two' => 2, 'three' => 3, 'four' => 4];</literal> のように使えます。
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
<literal>foo()[0]</literal> のように、関数の返り値を配列として扱えるようになりました。
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
Closures が <literal>$this</literal> をサポートするようになりました。
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
<?= が常に有効になりました。
|
||||
<link linkend="ini.short-open-tag">short_open_tag</link>
|
||||
の設定にかかわらずいつでも使えます。
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
クラスのインスタンスを生成するときに、そのメンバーにアクセスできるようになりました
|
||||
(例: <literal>(new Foo)->bar()</literal>)。
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
<literal>Class::{expr}()</literal> 構文をサポートするようになりました。
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
二進数フォーマットが追加されました。<literal>0b001001101</literal> のように使えます。
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
パースエラー時のパーサからのメッセージや関数コール時の引数が間違っている場合の警告メッセージが改善されました。
|
||||
</simpara>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
</section>
|
||||
|
||||
@@ -260,7 +291,7 @@
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<simpara>
|
||||
CLI オプション --rz が追加されました。指定した Zend 拡張モジュールの情報を表示します。
|
||||
CLI オプション <literal>--rz</literal> が追加されました。指定した Zend 拡張モジュールの情報を表示します。
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
@@ -286,61 +317,26 @@
|
||||
<section xml:id="migration54.deprecated">
|
||||
<title>PHP 5.4.x で推奨されなくなる機能</title>
|
||||
<simpara>
|
||||
<!-- Placeholder for "Deprecated features in PHP 5.4.x" -->
|
||||
</simpara>
|
||||
<simpara>
|
||||
INI ディレクティブで推奨されないものは以下の通りです。
|
||||
これらのひとつ以上を有効にすると、起動時に
|
||||
<constant>E_DEPRECATED</constant> エラーが発生します。
|
||||
</simpara>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<simpara>
|
||||
<literal>magic_quotes_gpc</literal>、<literal>magic_quotes_runtime</literal> および
|
||||
<literal>magic_quotes_sybase</literal>
|
||||
</simpara>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
<simpara>
|
||||
推奨されない関数
|
||||
</simpara>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<simpara>
|
||||
<function>mysql_list_dbs</function>
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
<function>get_magic_quotes_gpc</function>
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
<function>get_magic_quotes_runtime</function>
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
<function>mcrypt_generic_end</function>
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
<function>mysql_list_dbs</function>
|
||||
</simpara>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
</section>
|
||||
|
||||
<!-- Are there any undeprecated features/settings/etc. in PHP 5.4?
|
||||
|
||||
<section xml:id="migration54.undeprecated">
|
||||
<title>Undeprecated features in PHP 5.3.x</title>
|
||||
<simpara>
|
||||
The <function>is_a</function> function has been undeprecated by popular
|
||||
request; it will no longer issue an <constant>E_STRICT</constant> error.
|
||||
</simpara>
|
||||
</section>
|
||||
-->
|
||||
|
||||
<section xml:id="migration54.parameters">
|
||||
<title>新しいパラメータ</title>
|
||||
<title>変更された関数</title>
|
||||
<simpara>
|
||||
PHP 5.4 では、新しい、またはオプションのパラメータを提供する関数があります。
|
||||
</simpara>
|
||||
@@ -396,7 +392,7 @@
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
<function>http_reponse_code</function>
|
||||
<function>http_response_code</function>
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
@@ -444,6 +440,8 @@
|
||||
<simpara>
|
||||
<function>session_status</function>
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
<function>session_register_shutdown</function>
|
||||
</simpara>
|
||||
@@ -455,6 +453,8 @@
|
||||
<simpara>
|
||||
<function>mysqli_error_list</function>
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
<function>mysqli_stmt_error_list</function>
|
||||
</simpara>
|
||||
@@ -474,7 +474,9 @@
|
||||
<simpara>
|
||||
<function>ldap_control_paged_results</function>
|
||||
</simpara>
|
||||
<simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
<function>ldap_control_paged_results_response</function>
|
||||
</simpara>
|
||||
</listitem>
|
||||
@@ -485,188 +487,48 @@
|
||||
<simpara>
|
||||
<function>transliterator_create</function>
|
||||
</simpara>
|
||||
<simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
<function>transliterator_create_from_rules</function>
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
<function>transliterator_create_inverse</function>
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
<function>transliterator_get_error_code</function>
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
<function>transliterator_get_error_message</function>
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
<function>transliterator_list_ids</function>
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
<function>transliterator_transliterate</function>
|
||||
</simpara>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
</section>
|
||||
|
||||
<section xml:id="migration54.class-constants">
|
||||
<title>新しいクラス定数</title>
|
||||
<simpara>
|
||||
PHP 5.4.0 で加わった新しいクラス定数は以下の通りです。
|
||||
</simpara>
|
||||
</section>
|
||||
|
||||
<section xml:id="migration54.methods">
|
||||
<title>新しいメソッド</title>
|
||||
<simpara>
|
||||
PHP 5.4.0 で加わった新しいメソッドは以下の通りです。
|
||||
</simpara>
|
||||
<simpara><classname>XSL</classname>:</simpara>
|
||||
<simpara><link linkend="book.zlib">Zlib:</link></simpara>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<simpara>
|
||||
<function>XsltProcessor::setSecurityPrefs</function> および
|
||||
<function>XsltProcessor::getSecurityPrefs</function>
|
||||
</simpara>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
<simpara><classname>SPL</classname>:</simpara>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<simpara>
|
||||
<function>RegexIterator::getRegex</function>
|
||||
<function>SplObjectStorage::getHash</function>
|
||||
<function>DirectoryIterator::getExtension</function>
|
||||
<function>SplDoublyLinkedList::serialize</function>
|
||||
<function>SplDoublyLinkedList::unserialize</function>
|
||||
<function>SplFileInfo::getExtension</function>
|
||||
<function>SplFileObject::fputcsv</function>
|
||||
<function>SplQueue::serialize</function>
|
||||
<function>SplQueue::unserialize</function>
|
||||
<function>SplStack::serialize</function>
|
||||
<function>SplStack::unserialize</function>
|
||||
<function>SplTempFileObject::fputcsv</function>
|
||||
</simpara>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
<simpara><classname>Reflection</classname>:</simpara>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<simpara>
|
||||
<function>ReflectionExtension::isPersistent</function>
|
||||
<function>ReflectionExtension::isTemporary</function>
|
||||
<function>ReflectionClass::isCloneable</function>
|
||||
</simpara>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
<simpara><classname>Closure</classname>:</simpara>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<simpara>
|
||||
<function>Closure::bind</function>
|
||||
<function>Closure::bindTo</function>
|
||||
</simpara>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
<simpara><classname>PDO_dblib</classname>:</simpara>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<simpara>
|
||||
<function>PDO::newRowset</function>
|
||||
</simpara>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
<simpara><classname>StreamWrapper</classname>:</simpara>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<simpara>
|
||||
<function>StreamWrapper::stream_metadata</function>
|
||||
<function>zlib_decode</function>
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
<function>StreamWrapper::stream_truncate</function>
|
||||
</simpara>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
</section>
|
||||
|
||||
<section xml:id="migration54.new-extensions">
|
||||
<title>新しい拡張モジュール</title>
|
||||
<simpara>
|
||||
PHP 5.4.0 で追加された (デフォルトで含まれている) 拡張モジュールは以下の通りです。
|
||||
</simpara>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<simpara>
|
||||
<!-- Placeholder for "New Extensions". -->
|
||||
</simpara>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
</section>
|
||||
|
||||
<section xml:id="migration54.removed-extensions">
|
||||
<title>削除された拡張モジュール</title>
|
||||
<simpara>
|
||||
以下に示す拡張モジュールは PECL に移動し、PHP に同梱されなくなりました。
|
||||
これらの PECL パッケージ は、ユーザーの需要に応じて作られるかが決まります。
|
||||
</simpara>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<simpara>
|
||||
<link linkend="book.sqlite">sqlite</link>
|
||||
- ext/sqlite3 や ext/pdo_sqlite には影響しないことに注意しましょう。
|
||||
</simpara>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
</section>
|
||||
|
||||
<section xml:id="migration54.extensions-other">
|
||||
<title>その他の拡張モジュールに対する変更</title>
|
||||
<simpara>
|
||||
以下の拡張モジュールは configure スクリプトの実行中に無効にすることができなくなりました。
|
||||
</simpara>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<simpara>
|
||||
<!-- Placeholder for "Other changes to extensions" - Cannot be disabled during build. -->
|
||||
</simpara>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
|
||||
<simpara>
|
||||
拡張モジュールに対する振る舞いの変更や新機能は以下の通りです。
|
||||
</simpara>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<simpara>
|
||||
<link linkend="book.mysqli">mysqli</link>
|
||||
- <function>mysqli_result</function> が <link linkend="class.traversable">Traversable</link> を実装するようになりました。
|
||||
</simpara>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<simpara>
|
||||
<link linkend="ref.pdo-mysql">pdo_mysql</link>
|
||||
- MySQL クライアントライブラリ 4.1 より前のバージョンとのリンクをサポートしないようになりました。
|
||||
</simpara>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<simpara>
|
||||
MySQL 用の拡張モジュールである <link linkend="book.mysql">mysql</link> や
|
||||
<link linkend="book.mysqli">mysqli</link> そして <link linkend="ref.pdo-mysql">PDO_mysql</link>
|
||||
が、デフォルトのライブラリとして <link linkend="book.mysqlnd">mysqlnd</link>
|
||||
を使うようになりました。libmysql を使うことも可能ですが、その場合は
|
||||
configure のオプションで libmysql のパスを指定します。
|
||||
</simpara>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<simpara>
|
||||
<link linkend="book.mysqlnd">mysqlnd</link>
|
||||
- 名前付きパイプをサポートするようになりました。
|
||||
<function>zlib_encode</function>
|
||||
</simpara>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
@@ -710,7 +572,12 @@
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<simpara>
|
||||
<classname>SessionHandler</classname> インターフェイス
|
||||
<classname>SessionHandler</classname> クラス
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
<classname>SessionHandlerInterface</classname>
|
||||
</simpara>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
@@ -737,6 +604,199 @@
|
||||
</itemizedlist>
|
||||
</section>
|
||||
|
||||
<section xml:id="migration54.methods">
|
||||
<title>新しいメソッド</title>
|
||||
<simpara>
|
||||
PHP 5.4.0 で加わった新しいメソッドは以下の通りです。
|
||||
</simpara>
|
||||
<simpara><link linkend="book.xsl">XSL</link>:</simpara>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<simpara>
|
||||
<methodname>XsltProcessor::setSecurityPrefs</methodname>
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
<methodname>XsltProcessor::getSecurityPrefs</methodname>
|
||||
</simpara>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
<simpara><link linkend="book.spl">SPL</link>:</simpara>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<simpara>
|
||||
<methodname>RegexIterator::getRegex</methodname>
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
<methodname>SplObjectStorage::getHash</methodname>
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
<methodname>DirectoryIterator::getExtension</methodname>
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
<methodname>SplDoublyLinkedList::serialize</methodname>
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
<methodname>SplDoublyLinkedList::unserialize</methodname>
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
<methodname>SplFileInfo::getExtension</methodname>
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
<methodname>SplFileObject::fputcsv</methodname>
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
<methodname>SplQueue::serialize</methodname>
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
<methodname>SplQueue::unserialize</methodname>
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
<methodname>SplStack::serialize</methodname>
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
<methodname>SplStack::unserialize</methodname>
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
<methodname>SplTempFileObject::fputcsv</methodname>
|
||||
</simpara>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
<simpara><link linkend="book.reflection">Reflection</link>:</simpara>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<simpara>
|
||||
<methodname>ReflectionExtension::isPersistent</methodname>
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
<methodname>ReflectionExtension::isTemporary</methodname>
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
<methodname>ReflectionClass::isCloneable</methodname>
|
||||
</simpara>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
<simpara><classname>Closure</classname>:</simpara>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<simpara>
|
||||
<methodname>Closure::bind</methodname>
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
<methodname>Closure::bindTo</methodname>
|
||||
</simpara>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
<simpara><link linkend="ref.pdo-dblib">PDO_dblib</link>:</simpara>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<simpara>
|
||||
<methodname>PDO::newRowset</methodname>
|
||||
</simpara>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
<simpara><classname>StreamWrapper</classname>:</simpara>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<simpara>
|
||||
<methodname>StreamWrapper::stream_metadata</methodname>
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
<methodname>StreamWrapper::stream_truncate</methodname>
|
||||
</simpara>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
</section>
|
||||
|
||||
<section xml:id="migration54.removed-extensions">
|
||||
<title>削除された拡張モジュール</title>
|
||||
<simpara>
|
||||
以下に示す拡張モジュールは PECL に移動し、PHP に同梱されなくなりました。
|
||||
これらの PECL パッケージ は、ユーザーの需要に応じて作られるかが決まります。
|
||||
</simpara>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<simpara>
|
||||
<link linkend="book.sqlite">sqlite</link>
|
||||
- ext/sqlite3 や ext/pdo_sqlite には影響しないことに注意しましょう。
|
||||
</simpara>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
</section>
|
||||
|
||||
<section xml:id="migration54.extensions-other">
|
||||
<title>その他の拡張モジュールに対する変更</title>
|
||||
<simpara>
|
||||
拡張モジュールに対する振る舞いの変更や新機能は以下の通りです。
|
||||
</simpara>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<simpara>
|
||||
<link linkend="book.mysqli">mysqli</link>
|
||||
- <function>mysqli_result</function> が <link linkend="class.traversable">Traversable</link> を実装するようになりました。
|
||||
</simpara>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<simpara>
|
||||
<link linkend="ref.pdo-mysql">pdo_mysql</link>
|
||||
- MySQL クライアントライブラリ 4.1 より前のバージョンとのリンクをサポートしないようになりました。
|
||||
</simpara>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<simpara>
|
||||
MySQL 用の拡張モジュールである <link linkend="book.mysql">mysql</link> や
|
||||
<link linkend="book.mysqli">mysqli</link> そして <link linkend="ref.pdo-mysql">PDO_mysql</link>
|
||||
が、デフォルトのライブラリとして <link linkend="book.mysqlnd">mysqlnd</link>
|
||||
を使うようになりました。libmysql を使うことも可能ですが、その場合は
|
||||
configure のオプションで libmysql のパスを指定します。
|
||||
</simpara>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<simpara>
|
||||
<link linkend="book.mysqlnd">mysqlnd</link>
|
||||
- 名前付きパイプをサポートするようになりました。
|
||||
</simpara>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
</section>
|
||||
|
||||
<section xml:id="migration54.global-constants">
|
||||
<title>新しいグローバル定数</title>
|
||||
|
||||
@@ -1326,28 +1386,12 @@
|
||||
fatal エラーが発生しても強制終了されなくなりました。
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
パースエラー時のパーサからのメッセージや関数コール時の引数が間違っている場合の警告メッセージが改善されました。
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
<link linkend="language.variables.superglobals">$_SERVER['REQUEST_TIME_FLOAT']</link>
|
||||
が追加され、マイクロ秒単位の精度も取得できるようになりました。
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
<?= が常に有効になりました。<literal>short_open_tag</literal> の設定にかかわらずいつでも使えます。
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
クラスのインスタンスを生成するときに、そのメンバーにアクセスできるようになりました
|
||||
(例: (new foo)->bar())。
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
新しいハッシュアルゴリズム fnv132, fnv164, joaat が追加されました。
|
||||
@@ -1358,32 +1402,6 @@
|
||||
文字列のオフセットの連鎖 (たとえば $a が文字列の場合の $a[0][0]) が動作するようになりました。
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
二進数フォーマットが追加されました。0b001001101 のように使えます。
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
配列の短縮構文が追加されました。$a = [1, 2, 3, 4]; や
|
||||
$a = ['one' => 1, 'two' => 2, 'three' => 3, 'four' => 4]; のように使えます。
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
Class::{expr}() 構文をサポートするようになりました。
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
foo()[0] のように、関数の返り値を配列として扱えるようになりました。
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
Closures がスコープや <literal>$this</literal> をサポートするようになりました。
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
<type>SimpleXMLElement</type> を配列にキャストすると、
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
PHP, Zend engine, SAPI モジュールも含みます。
|
||||
</simpara>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<varlistentry xml:id="constant.php-version">
|
||||
<term>
|
||||
<constant>PHP_VERSION</constant>
|
||||
(<type>string</type>)
|
||||
@@ -22,7 +22,7 @@
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<varlistentry xml:id="constant.php-major-version">
|
||||
<term>
|
||||
<constant>PHP_MAJOR_VERSION</constant>
|
||||
(<type>integer</type>)
|
||||
@@ -35,7 +35,7 @@
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<varlistentry xml:id="constant.php-minor-version">
|
||||
<term>
|
||||
<constant>PHP_MINOR_VERSION</constant>
|
||||
(<type>integer</type>)
|
||||
@@ -48,7 +48,7 @@
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<varlistentry xml:id="constant.php-release-version">
|
||||
<term>
|
||||
<constant>PHP_RELEASE_VERSION</constant>
|
||||
(<type>integer</type>)
|
||||
@@ -61,7 +61,7 @@
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<varlistentry xml:id="constant.php-version-id">
|
||||
<term>
|
||||
<constant>PHP_VERSION_ID</constant>
|
||||
(<type>integer</type>)
|
||||
@@ -74,7 +74,7 @@
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<varlistentry xml:id="constant.php-extra-version">
|
||||
<term>
|
||||
<constant>PHP_EXTRA_VERSION</constant>
|
||||
(<type>string</type>)
|
||||
@@ -88,7 +88,7 @@
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<varlistentry xml:id="constant.php-zts">
|
||||
<term>
|
||||
<constant>PHP_ZTS</constant>
|
||||
(<type>integer</type>)
|
||||
@@ -99,7 +99,7 @@
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<varlistentry xml:id="constant.php-debug">
|
||||
<term>
|
||||
<constant>PHP_DEBUG</constant>
|
||||
(<type>integer</type>)
|
||||
@@ -110,7 +110,7 @@
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<varlistentry xml:id="constant.php-maxpathlen">
|
||||
<term>
|
||||
<constant>PHP_MAXPATHLEN</constant>
|
||||
(<type>integer</type>)
|
||||
@@ -122,7 +122,7 @@
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<varlistentry xml:id="constant.php-os">
|
||||
<term>
|
||||
<constant>PHP_OS</constant>
|
||||
(<type>string</type>)
|
||||
@@ -133,7 +133,7 @@
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<varlistentry xml:id="constant.php-sapi">
|
||||
<term>
|
||||
<constant>PHP_SAPI</constant>
|
||||
(<type>string</type>)
|
||||
@@ -146,7 +146,7 @@
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<varlistentry xml:id="constant.php-eol">
|
||||
<term>
|
||||
<constant>PHP_EOL</constant>
|
||||
(<type>string</type>)
|
||||
@@ -158,7 +158,7 @@
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<varlistentry xml:id="constant.php-int-max">
|
||||
<term>
|
||||
<constant>PHP_INT_MAX</constant>
|
||||
(<type>integer</type>)
|
||||
@@ -170,7 +170,7 @@
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<varlistentry xml:id="constant.php-int-size">
|
||||
<term>
|
||||
<constant>PHP_INT_SIZE</constant>
|
||||
(<type>integer</type>)
|
||||
@@ -181,7 +181,7 @@
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<varlistentry xml:id="constant.default-include-path">
|
||||
<term>
|
||||
<constant>DEFAULT_INCLUDE_PATH</constant>
|
||||
(<type>string</type>)
|
||||
@@ -192,7 +192,7 @@
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<varlistentry xml:id="constant.pear-install-dir">
|
||||
<term>
|
||||
<constant>PEAR_INSTALL_DIR</constant>
|
||||
(<type>string</type>)
|
||||
@@ -203,7 +203,7 @@
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<varlistentry xml:id="constant.pear-extension-dir">
|
||||
<term>
|
||||
<constant>PEAR_EXTENSION_DIR</constant>
|
||||
(<type>string</type>)
|
||||
@@ -214,7 +214,7 @@
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<varlistentry xml:id="constant.php-extension-dir">
|
||||
<term>
|
||||
<constant>PHP_EXTENSION_DIR</constant>
|
||||
(<type>string</type>)
|
||||
@@ -225,7 +225,7 @@
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<varlistentry xml:id="constant.php-prefix">
|
||||
<term>
|
||||
<constant>PHP_PREFIX</constant>
|
||||
(<type>string</type>)
|
||||
@@ -237,7 +237,7 @@
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<varlistentry xml:id="constant.php-bindir">
|
||||
<term>
|
||||
<constant>PHP_BINDIR</constant>
|
||||
(<type>string</type>)
|
||||
@@ -248,7 +248,7 @@
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<varlistentry xml:id="constant.php-binary">
|
||||
<term>
|
||||
<constant>PHP_BINARY</constant>
|
||||
(<type>string</type>)
|
||||
@@ -260,7 +260,7 @@
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<varlistentry xml:id="constant.php-mandir">
|
||||
<term>
|
||||
<constant>PHP_MANDIR</constant>
|
||||
(<type>string</type>)
|
||||
@@ -272,7 +272,7 @@
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<varlistentry xml:id="constant.php-libdir">
|
||||
<term>
|
||||
<constant>PHP_LIBDIR</constant>
|
||||
(<type>string</type>)
|
||||
@@ -283,7 +283,7 @@
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<varlistentry xml:id="constant.php-datadir">
|
||||
<term>
|
||||
<constant>PHP_DATADIR</constant>
|
||||
(<type>string</type>)
|
||||
@@ -294,7 +294,7 @@
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<varlistentry xml:id="constant.php-sysconfdir">
|
||||
<term>
|
||||
<constant>PHP_SYSCONFDIR</constant>
|
||||
(<type>string</type>)
|
||||
@@ -305,7 +305,7 @@
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<varlistentry xml:id="constant.php-localstatedir">
|
||||
<term>
|
||||
<constant>PHP_LOCALSTATEDIR</constant>
|
||||
(<type>string</type>)
|
||||
@@ -316,7 +316,7 @@
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<varlistentry xml:id="constant.php-config-file-path">
|
||||
<term>
|
||||
<constant>PHP_CONFIG_FILE_PATH</constant>
|
||||
(<type>string</type>)
|
||||
@@ -327,7 +327,7 @@
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<varlistentry xml:id="constant.php-config-file-scan-dir">
|
||||
<term>
|
||||
<constant>PHP_CONFIG_FILE_SCAN_DIR</constant>
|
||||
(<type>string</type>)
|
||||
@@ -338,7 +338,7 @@
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<varlistentry xml:id="constant.php-shlib-suffix">
|
||||
<term>
|
||||
<constant>PHP_SHLIB_SUFFIX</constant>
|
||||
(<type>string</type>)
|
||||
@@ -351,7 +351,7 @@
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<varlistentry xml:id="constant.php-output-handler-start">
|
||||
<term>
|
||||
<constant>PHP_OUTPUT_HANDLER_START</constant>
|
||||
(<type>integer</type>)
|
||||
@@ -362,7 +362,7 @@
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<varlistentry xml:id="constant.php-output-handler-cont">
|
||||
<term>
|
||||
<constant>PHP_OUTPUT_HANDLER_CONT</constant>
|
||||
(<type>integer</type>)
|
||||
@@ -373,7 +373,7 @@
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<varlistentry xml:id="constant.php-output-handler-end">
|
||||
<term>
|
||||
<constant>PHP_OUTPUT_HANDLER_END</constant>
|
||||
(<type>integer</type>)
|
||||
@@ -384,132 +384,9 @@
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<varlistentry xml:id="constant.e-error">
|
||||
<term>
|
||||
<constant>PHP_WINDOWS_VERSION_MAJOR</constant>
|
||||
(<type>integer</type>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
Windows OS のメジャーバージョン。
|
||||
PHP 5.3.0 以降 (Windows 版のみ) で利用可能。
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<constant>PHP_WINDOWS_VERSION_MINOR</constant>
|
||||
(<type>integer</type>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
Windows OS のマイナーバージョン。
|
||||
PHP 5.3.0 以降 (Windows 版のみ) で利用可能。
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<constant>PHP_WINDOWS_VERSION_BUILD</constant>
|
||||
(<type>integer</type>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
PHP 5.3.0 以降で利用可能
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<constant>PHP_WINDOWS_VERSION_PLATFORM</constant>
|
||||
(<type>integer</type>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
PHP 5.3.0 以降で利用可能
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<constant>PHP_WINDOWS_VERSION_SP_MAJOR</constant>
|
||||
(<type>integer</type>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
PHP 5.3.0 以降で利用可能
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<constant>PHP_WINDOWS_VERSION_SP_MINOR</constant>
|
||||
(<type>integer</type>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
PHP 5.3.0 以降で利用可能
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<constant>PHP_WINDOWS_VERSION_SUITEMASK</constant>
|
||||
(<type>integer</type>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
PHP 5.3.0 以降で利用可能
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<constant>PHP_WINDOWS_VERSION_PRODUCTTYPE</constant>
|
||||
(<type>integer</type>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
PHP 5.3.0 以降で利用可能
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<constant>PHP_WINDOWS_NT_DOMAIN_CONTROLLER</constant>
|
||||
(<type>integer</type>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
PHP 5.3.0 以降で利用可能
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<constant>PHP_WINDOWS_NT_SERVER</constant>
|
||||
(<type>integer</type>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
PHP 5.3.0 以降で利用可能
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<constant>PHP_WINDOWS_NT_WORKSTATION</constant>
|
||||
(<type>integer</type>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
PHP 5.3.0 以降で利用可能
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<constant>E_ERROR</constant>
|
||||
<constant>E_ERROR</constant>
|
||||
(<type>integer</type>)
|
||||
</term>
|
||||
<listitem>
|
||||
@@ -518,117 +395,117 @@
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<varlistentry xml:id="constant.e-warning">
|
||||
<term>
|
||||
<constant>E_WARNING</constant>
|
||||
<constant>E_WARNING</constant>
|
||||
(<type>integer</type>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
|
||||
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<varlistentry xml:id="constant.e-parse">
|
||||
<term>
|
||||
<constant>E_PARSE</constant>
|
||||
<constant>E_PARSE</constant>
|
||||
(<type>integer</type>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
|
||||
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<varlistentry xml:id="constant.e-notice">
|
||||
<term>
|
||||
<constant>E_NOTICE</constant>
|
||||
<constant>E_NOTICE</constant>
|
||||
(<type>integer</type>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
|
||||
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<varlistentry xml:id="constant.e-core-error">
|
||||
<term>
|
||||
<constant>E_CORE_ERROR</constant>
|
||||
<constant>E_CORE_ERROR</constant>
|
||||
(<type>integer</type>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
|
||||
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<varlistentry xml:id="constant.e-core-warning">
|
||||
<term>
|
||||
<constant>E_CORE_WARNING</constant>
|
||||
<constant>E_CORE_WARNING</constant>
|
||||
(<type>integer</type>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
|
||||
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<varlistentry xml:id="constant.e-compile-error">
|
||||
<term>
|
||||
<constant>E_COMPILE_ERROR</constant>
|
||||
<constant>E_COMPILE_ERROR</constant>
|
||||
(<type>integer</type>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
|
||||
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<varlistentry xml:id="constant.e-compile-warning">
|
||||
<term>
|
||||
<constant>E_COMPILE_WARNING</constant>
|
||||
<constant>E_COMPILE_WARNING</constant>
|
||||
(<type>integer</type>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
|
||||
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<varlistentry xml:id="constant.e-user-error">
|
||||
<term>
|
||||
<constant>E_USER_ERROR</constant>
|
||||
<constant>E_USER_ERROR</constant>
|
||||
(<type>integer</type>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
|
||||
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<varlistentry xml:id="constant.e-user-warning">
|
||||
<term>
|
||||
<constant>E_USER_WARNING</constant>
|
||||
<constant>E_USER_WARNING</constant>
|
||||
(<type>integer</type>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
|
||||
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<varlistentry xml:id="constant.e-user-notice">
|
||||
<term>
|
||||
<constant>E_USER_NOTICE</constant>
|
||||
<constant>E_USER_NOTICE</constant>
|
||||
(<type>integer</type>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
|
||||
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<varlistentry xml:id="constant.e-deprecated">
|
||||
<term>
|
||||
<constant>E_DEPRECATED</constant>
|
||||
(<type>integer</type>)
|
||||
@@ -639,7 +516,7 @@
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<varlistentry xml:id="constant.e-user-deprecated">
|
||||
<term>
|
||||
<constant>E_USER_DEPRECATED</constant>
|
||||
(<type>integer</type>)
|
||||
@@ -650,7 +527,7 @@
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<varlistentry xml:id="constant.e-all">
|
||||
<term>
|
||||
<constant>E_ALL</constant>
|
||||
(<type>integer</type>)
|
||||
@@ -661,7 +538,7 @@
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<varlistentry xml:id="constant.e-strict">
|
||||
<term>
|
||||
<constant>E_STRICT</constant>
|
||||
(<type>integer</type>)
|
||||
@@ -672,7 +549,7 @@
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<varlistentry xml:id="constant.compiler-halt-offset">
|
||||
<term>
|
||||
<constant>__COMPILER_HALT_OFFSET__</constant>
|
||||
(<type>integer</type>)
|
||||
@@ -683,7 +560,7 @@
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<varlistentry xml:id="constant.true">
|
||||
<term>
|
||||
&true;
|
||||
(<type>boolean</type>)
|
||||
@@ -694,7 +571,7 @@
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<varlistentry xml:id="constant.false">
|
||||
<term>
|
||||
&false;
|
||||
(<type>boolean</type>)
|
||||
@@ -705,7 +582,7 @@
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<varlistentry xml:id="constant.null">
|
||||
<term>
|
||||
&null;
|
||||
(<type>boolean</type>)
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: b9c3ddd1d3cdafeed32eae54229151f221d13d6d Maintainer: hirokawa Status: ready -->
|
||||
<!-- EN-Revision: 4f90edebfb15e0c08faa3aab702e3dbfd55e1012 Maintainer: hirokawa Status: ready -->
|
||||
<!-- CREDITS: shimooka -->
|
||||
<chapter xml:id="features.safe-mode" xmlns="http://docbook.org/ns/docbook">
|
||||
<title>セーフモード</title>
|
||||
@@ -12,7 +12,36 @@
|
||||
多くのユーザ、特に ISP ではセーフモードが現在使用されています。
|
||||
</para>
|
||||
|
||||
&warn.deprecated.feature-5-3-0.removed-6-0-0;
|
||||
&warn.deprecated.feature-5-3-0.removed-5-4-0;
|
||||
|
||||
<para>
|
||||
<table>
|
||||
<title><literal>セーフモード</literal>の変更履歴</title>
|
||||
<tgroup cols="2">
|
||||
<thead>
|
||||
<row>
|
||||
<entry>&Version;</entry>
|
||||
<entry>&Description;</entry>
|
||||
</row>
|
||||
</thead>
|
||||
<tbody>
|
||||
<row>
|
||||
<entry>5.4.0</entry>
|
||||
<entry>
|
||||
PHP から削除され、<constant>E_CORE_ERROR</constant>
|
||||
レベルのエラーが発生するようになりました。
|
||||
</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>5.3.0</entry>
|
||||
<entry>
|
||||
非推奨となり、<constant>E_DEPRECATED</constant> エラーが発生するようになりました。
|
||||
</entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</table>
|
||||
</para>
|
||||
|
||||
<sect1 xml:id="ini.sect.safe-mode">
|
||||
<title>セキュリティとセーフモード</title>
|
||||
@@ -87,7 +116,7 @@
|
||||
PHP が <literal>--enable-safe-mode</literal> でコンパイルされている場合のデフォルトは
|
||||
On、そうでないときのデフォルトは Off です。
|
||||
</para>
|
||||
&warn.deprecated.feature-5-3-0.removed-6-0-0;
|
||||
&warn.deprecated.feature-5-3-0.removed-5-4-0;
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry xml:id="ini.safe-mode-gid">
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 527b18d15f5301dc2b018a6c681294ec0c45f008 Maintainer: hirokawa Status: ready -->
|
||||
<!-- EN-Revision: d458ec5b41dd8c2b8ec0d48c56aae46f7f9f5ff7 Maintainer: hirokawa Status: ready -->
|
||||
<!-- Credits: haruki,shimooka,takagi -->
|
||||
|
||||
<!ENTITY changelog.randomseed '<row xmlns="http://docbook.org/ns/docbook"><entry>4.2.0</entry><entry>
|
||||
@@ -187,6 +187,16 @@ xmlns="http://docbook.org/ns/docbook"><simpara>この関数は PHP 5.3.0 で
|
||||
<emphasis>非推奨</emphasis>となりました。
|
||||
この機能を使用しないことを強く推奨します。</simpara></warning>'>
|
||||
|
||||
<!ENTITY warn.deprecated.feature-5-3-0.removed-5-4-0 '<warning
|
||||
xmlns="http://docbook.org/ns/docbook"><simpara>この機能は PHP 5.3.0 で
|
||||
<emphasis>非推奨</emphasis>となり、
|
||||
PHP 5.4.0 で<emphasis>削除</emphasis>されました。</simpara></warning>'>
|
||||
|
||||
<!ENTITY warn.deprecated.function-5-3-0.removed-5-4-0 '<warning
|
||||
xmlns="http://docbook.org/ns/docbook"><simpara>この関数は PHP 5.3.0 で
|
||||
<emphasis>非推奨</emphasis>となり、
|
||||
PHP 5.4.0 で<emphasis>削除</emphasis>されました。</simpara></warning>'>
|
||||
|
||||
<!ENTITY removed.php.future 'この非推奨の機能は、<emphasis xmlns="http://docbook.org/ns/docbook">きっと</emphasis>
|
||||
将来 <emphasis xmlns="http://docbook.org/ns/docbook">削除</emphasis> されるでしょう。'>
|
||||
|
||||
@@ -1269,7 +1279,7 @@ PHP 5.0 でのみ利用可能であり、スレッドセーフを有効にして
|
||||
<!ENTITY link.http.request.info '<link xmlns="http://docbook.org/ns/docbook" linkend="http.request.info">リクエスト/レスポンス の情報</link>'>
|
||||
<!ENTITY returns.http.response '成功した場合は HTTP レスポンスを文字列で、失敗した場合は &false; を返します。'>
|
||||
<!ENTITY returns.http.false.orexits '失敗した場合は &false; を返します。成功した場合は <emphasis xmlns="http://docbook.org/ns/docbook">終了</emphasis> します。'>
|
||||
<!ENTITY returns.session.storage.retval '返り値 (通常は、&true; が成功そして &false; が失敗を表します)。'>
|
||||
<!ENTITY returns.session.storage.retval '返り値 (通常は、&true; が成功そして &false; が失敗を表します)。この値は PHP で内部的に処理されるものであることに注意しましょう。'>
|
||||
<!ENTITY http.request.affects '次のリクエストメソッドについてのみ有効です。'>
|
||||
<!ENTITY http.request.affects.any 'すべてのリクエストメソッドについて有効です。'>
|
||||
<!ENTITY http.response.class.php51 'PHP 5.1.0 以降を使用している場合は <link xmlns="http://docbook.org/ns/docbook" linkend="class.httpresponse"><classname
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 48573a3b164e53168cbc2acff2c714811ec6387c Maintainer: hirokawa Status: ready -->
|
||||
<!-- EN-Revision: 52abaae9b28b7a347de09092ece31599315b5edf Maintainer: hirokawa Status: ready -->
|
||||
<!-- CREDITS: takagi -->
|
||||
|
||||
<chapter xml:id="language.constants" xmlns="http://docbook.org/ns/docbook">
|
||||
@@ -214,13 +214,13 @@ echo CONSTANT;
|
||||
</row>
|
||||
</thead>
|
||||
<tbody>
|
||||
<row>
|
||||
<row xml:id="constant.line">
|
||||
<entry><constant>__LINE__</constant></entry>
|
||||
<entry>
|
||||
ファイル上の現在の行番号。
|
||||
</entry>
|
||||
</row>
|
||||
<row>
|
||||
<row xml:id="constant.file">
|
||||
<entry><constant>__FILE__</constant></entry>
|
||||
<entry>
|
||||
ファイルのフルパスとファイル名。インクルードされるファイルの
|
||||
@@ -230,7 +230,7 @@ echo CONSTANT;
|
||||
それより前のバージョンでは、場合によっては相対パスが返されることもあります。
|
||||
</entry>
|
||||
</row>
|
||||
<row>
|
||||
<row xml:id="constant.dir">
|
||||
<entry><constant>__DIR__</constant></entry>
|
||||
<entry>
|
||||
そのファイルの存在するディレクトリ。include の中で使用すると、
|
||||
@@ -240,7 +240,7 @@ echo CONSTANT;
|
||||
(PHP 5.3.0 で追加されました)。
|
||||
</entry>
|
||||
</row>
|
||||
<row>
|
||||
<row xml:id="constant.function">
|
||||
<entry><constant>__FUNCTION__</constant></entry>
|
||||
<entry>
|
||||
関数名(PHP4.3.0で追加されました)。
|
||||
@@ -248,7 +248,7 @@ echo CONSTANT;
|
||||
PHP 4では、この値は常に小文字で返されました。
|
||||
</entry>
|
||||
</row>
|
||||
<row>
|
||||
<row xml:id="constant.class">
|
||||
<entry><constant>__CLASS__</constant></entry>
|
||||
<entry>
|
||||
クラス名(PHP4.3.0で追加されました)。
|
||||
@@ -260,7 +260,7 @@ echo CONSTANT;
|
||||
__CLASS__ を使うと、そのトレイトを use しているクラスの名前を返します。
|
||||
</entry>
|
||||
</row>
|
||||
<row>
|
||||
<row xml:id="constant.trait">
|
||||
<entry><constant>__TRAIT__</constant></entry>
|
||||
<entry>
|
||||
トレイト名 (PHP 5.4.0 で追加されました)。PHP 5.4 以降では、
|
||||
@@ -270,14 +270,14 @@ echo CONSTANT;
|
||||
</entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<row xml:id="constant.method">
|
||||
<entry><constant>__METHOD__</constant></entry>
|
||||
<entry>
|
||||
クラスのメソッド名(PHP5.0.0で追加されました)。
|
||||
メソッド名は宣言時と同じ(ケース依存)を返します。
|
||||
</entry>
|
||||
</row>
|
||||
<row>
|
||||
<row xml:id="constant.namespace">
|
||||
<entry><constant>__NAMESPACE__</constant></entry>
|
||||
<entry>
|
||||
現在の名前空間の名前 (大文字小文字を区別します)。
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: c7aca484fd1d7eaccd03f0e011f858fa93d105b9 Maintainer: takagi Status: ready -->
|
||||
<!-- EN-Revision: fd40a64466902debef595a8875d619dd8b6d105d Maintainer: takagi Status: ready -->
|
||||
|
||||
<sect1 xml:id="control-structures.break" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<title><literal>break</literal></title>
|
||||
@@ -48,6 +48,28 @@ while (++$i) {
|
||||
</programlisting>
|
||||
</informalexample>
|
||||
</para>
|
||||
<para>
|
||||
<table>
|
||||
<title><literal>break</literal> の変更履歴</title>
|
||||
<tgroup cols="2">
|
||||
<thead>
|
||||
<row>
|
||||
<entry>&Version;</entry>
|
||||
<entry>&Description;</entry>
|
||||
</row>
|
||||
</thead>
|
||||
<tbody>
|
||||
<row>
|
||||
<entry>5.4.0</entry>
|
||||
<entry>
|
||||
数値引数の部分に変数を渡すこと (例: <literal>$num = 2; break $num;</literal>)
|
||||
ができなくなりました。
|
||||
</entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</table>
|
||||
</para>
|
||||
</sect1>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: c7aca484fd1d7eaccd03f0e011f858fa93d105b9 Maintainer: takagi Status: ready -->
|
||||
<!-- EN-Revision: fd40a64466902debef595a8875d619dd8b6d105d Maintainer: takagi Status: ready -->
|
||||
|
||||
<sect1 xml:id="control-structures.continue" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<title><literal>continue</literal></title>
|
||||
@@ -102,6 +102,28 @@ for ($i = 0; $i < 5; ++$i) {
|
||||
</para>
|
||||
</informalexample>
|
||||
</para>
|
||||
<para>
|
||||
<table>
|
||||
<title><literal>continue</literal> の変更履歴</title>
|
||||
<tgroup cols="2">
|
||||
<thead>
|
||||
<row>
|
||||
<entry>&Version;</entry>
|
||||
<entry>&Description;</entry>
|
||||
</row>
|
||||
</thead>
|
||||
<tbody>
|
||||
<row>
|
||||
<entry>5.4.0</entry>
|
||||
<entry>
|
||||
数値引数の部分に変数を渡すこと (例: <literal>$num = 2; continue $num;</literal>)
|
||||
ができなくなりました。
|
||||
</entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</table>
|
||||
</para>
|
||||
</sect1>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: c272030e25fbfb19ad35f1a62cf148374fa1d7ee Maintainer: takagi Status: ready -->
|
||||
<!-- EN-Revision: 63f0c045f92e4199499013621745b4ebcbe8e83e Maintainer: takagi Status: ready -->
|
||||
<!-- CREDITS: hirokawa,shimooka -->
|
||||
<sect1 xml:id="language.types.array">
|
||||
<title>配列</title>
|
||||
@@ -302,6 +302,34 @@ string(3) "foo"
|
||||
</screen>
|
||||
</example>
|
||||
|
||||
<para>
|
||||
PHP 5.4 以降では、関数やメソッドの返す結果を直接配列として扱えるようになりました。
|
||||
以前は、いったん一次変数に代入しないと配列としては扱えませんでした。
|
||||
</para>
|
||||
|
||||
<example>
|
||||
<title>配列のデリファレンス</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
function getArray() {
|
||||
return array(1, 2, 3);
|
||||
}
|
||||
|
||||
// PHP 5.4 ではこのように書けます。
|
||||
$secondElement = getArray()[1];
|
||||
|
||||
// 以前は、このようにするか
|
||||
$tmp = getArray();
|
||||
$secondElement = $tmp[1];
|
||||
|
||||
// あるいはこのようにしなければなりませんでした。
|
||||
list(, $secondElement) = getArray();
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
|
||||
<note>
|
||||
<para>
|
||||
配列に定義されていないキーへアクセスしたときの挙動は、
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 83756b8c94ba522820e03d89d45333523da92410 Maintainer: takagi Status: ready -->
|
||||
<!-- EN-Revision: a664e33433525efd7785983546b85469eaab3197 Maintainer: takagi Status: ready -->
|
||||
<!-- CREDITS: hirokawa -->
|
||||
<!-- Membership: bundled, external -->
|
||||
<book xml:id="book.mysqli" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
@@ -62,6 +62,7 @@
|
||||
&reference.mysqli.mysqli-result;
|
||||
&reference.mysqli.mysqli-driver;
|
||||
&reference.mysqli.mysqli-warning;
|
||||
&reference.mysqli.mysqli-sql-exception;
|
||||
&reference.mysqli.reference;
|
||||
|
||||
</book>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: f052ac1bd73549125c3fc3dc68a36d4b0608a16d Maintainer: takagi Status: ready -->
|
||||
<!-- EN-Revision: 72abc02a97bf67bbce4e5d8cf0532c61534852c8 Maintainer: takagi Status: ready -->
|
||||
<chapter xml:id="mysqlnd.config" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
|
||||
&reftitle.runtime;
|
||||
@@ -37,6 +37,18 @@
|
||||
<entry>PHP_INI_SYSTEM</entry>
|
||||
<entry>PHP 5.3.0 以降で利用可能。</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><link linkend="ini.mysqlnd.log-mask">mysqlnd.log_mask</link></entry>
|
||||
<entry>0</entry>
|
||||
<entry>PHP_INI_ALL</entry>
|
||||
<entry>PHP 5.3.0 以降で利用可能。</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><link linkend="ini.mysqlnd.mempool-default-size">mysqlnd.mempool_default_size</link></entry>
|
||||
<entry>16000</entry>
|
||||
<entry>PHP_INI_ALL</entry>
|
||||
<entry>PHP 5.3.3 以降で利用可能。</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><link linkend="mysqlnd.net-read-timeout">mysqlnd.net_read_timeout</link></entry>
|
||||
<entry>"31536000"</entry>
|
||||
@@ -211,6 +223,40 @@ d:t:x:O,/tmp/mysqlnd.trace
|
||||
<para></para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry xml:id="ini.mysqlnd.log-mask">
|
||||
<term>
|
||||
<parameter>mysqlnd.log_mask</parameter>
|
||||
<type>integer</type>
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
どのクエリをログに記録するかを定義します。デフォルトは 0 で、これはクエリをログに記録しません。
|
||||
値は静数値で定義します。PHP の定数はありません。
|
||||
たとえば 48 (16 + 32) を設定すると、インデックスの選択が悪かったり
|
||||
(SERVER_QUERY_NO_GOOD_INDEX_USED = 16) まったくインデックスを使っていなかったり (SERVER_QUERY_NO_INDEX_USED = 32)
|
||||
といった理由で遅くなっているクエリをログに記録します。
|
||||
2043 (1 + 2 + 8 + ... + 1024) を指定すると、あらゆる型の遅いクエリを記録します。
|
||||
</para>
|
||||
<para>
|
||||
使える型は、次のとおりです。
|
||||
SERVER_STATUS_IN_TRANS=1, SERVER_STATUS_AUTOCOMMIT=2,
|
||||
SERVER_MORE_RESULTS_EXISTS=8, SERVER_QUERY_NO_GOOD_INDEX_USED=16, SERVER_QUERY_NO_INDEX_USED=32,
|
||||
SERVER_STATUS_CURSOR_EXISTS=64, SERVER_STATUS_LAST_ROW_SENT=128, SERVER_STATUS_DB_DROPPED=256,
|
||||
SERVER_STATUS_NO_BACKSLASH_ESCAPES=512, SERVER_QUERY_WAS_SLOW=1024
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry xml:id="ini.mysqlnd.mempool-default-size">
|
||||
<term>
|
||||
<parameter>mysqlnd.mempool_default_size</parameter>
|
||||
<type>integer</type>
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
mysqlnd メモリプールのデフォルトサイズ。これは結果セットが使います。
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry xml:id="mysqlnd.net-read-timeout">
|
||||
<term>
|
||||
<parameter>mysqlnd.net_read_timeout</parameter>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 79b017e888fe8535f1e9e0386c6bb49b5c43b2da Maintainer: shimooka Status: ready -->
|
||||
<!-- EN-Revision: b543dc50c1a88c80c5e2e53b37b73d55592a1ced Maintainer: shimooka Status: ready -->
|
||||
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.number-format" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<refnamediv>
|
||||
<refname>number_format</refname>
|
||||
@@ -44,13 +44,6 @@
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
<para>
|
||||
<parameter>number</parameter> をフォーマットした結果を返します。
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="parameters">
|
||||
&reftitle.parameters;
|
||||
<para>
|
||||
@@ -91,6 +84,13 @@
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
<para>
|
||||
<parameter>number</parameter> をフォーマットした結果を返します。
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="changelog">
|
||||
&reftitle.changelog;
|
||||
<para>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: b9c3ddd1d3cdafeed32eae54229151f221d13d6d Maintainer: hirokawa Status: ready -->
|
||||
<!-- EN-Revision: 2f0cfaf4060b232835537001936d20b0a1e2a2d6 Maintainer: hirokawa Status: ready -->
|
||||
<!-- CREDITS: takagi -->
|
||||
<section xml:id="sybase.configuration" xmlns="http://docbook.org/ns/docbook">
|
||||
&reftitle.runtime;
|
||||
@@ -161,7 +161,7 @@
|
||||
ダブルクオートもバックスラッシュもNULもエスケープされません。
|
||||
</para>
|
||||
</note>
|
||||
&warn.deprecated.feature-5-3-0.removed-6-0-0;
|
||||
&warn.deprecated.feature-5-3-0.removed-5-4-0;
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: ab6785b01ce1006e3a9761988575289f40c9b678 Maintainer: hirokawa Status: ready -->
|
||||
<!-- EN-Revision: 2f0cfaf4060b232835537001936d20b0a1e2a2d6 Maintainer: hirokawa Status: ready -->
|
||||
<!-- CREDITS: shimooka -->
|
||||
<chapter xml:id="security.globals" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<title>グローバル変数の登録機能の使用法</title>
|
||||
&warn.deprecated.feature-5-3-0.removed-6-0-0;
|
||||
&warn.deprecated.feature-5-3-0.removed-5-4-0;
|
||||
<para>
|
||||
<acronym>PHP</acronym>の変更点で最も議論の対象となったのは、おそらく、<acronym>PHP</acronym>
|
||||
<link xlink:href="&url.php.release4.2.0;">4.2.0</link>において
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 19815f0b8be2d295ae030a9687a39489991482b2 Maintainer: shimooka Status: ready -->
|
||||
<!-- EN-Revision: 2f0cfaf4060b232835537001936d20b0a1e2a2d6 Maintainer: shimooka Status: ready -->
|
||||
<!-- CREDITS: hirokawa -->
|
||||
<chapter xml:id="security.magicquotes" xmlns="http://docbook.org/ns/docbook">
|
||||
<title>マジッククオート</title>
|
||||
&warn.deprecated.feature-5-3-0.removed-6-0-0;
|
||||
&warn.deprecated.feature-5-3-0.removed-5-4-0;
|
||||
<para>
|
||||
マジッククオートは、<acronym>PHP</acronym>スクリプトに入力されるデータを
|
||||
自動的にエスケープする機能です。
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
<sect1 xml:id="security.magicquotes.what">
|
||||
<title>マジッククオートとは</title>
|
||||
&warn.deprecated.feature-5-3-0.removed-6-0-0;
|
||||
&warn.deprecated.feature-5-3-0.removed-5-4-0;
|
||||
<para>
|
||||
オンの場合、全ての<literal>'</literal> (シングルクオート), <literal>"</literal>
|
||||
(ダブルクオート), <literal>\</literal> (バックスラッシュ)および<literal>NULL</literal>
|
||||
@@ -77,7 +77,7 @@
|
||||
|
||||
<sect1 xml:id="security.magicquotes.why">
|
||||
<title>なぜマジッククオートを使用していたのか</title>
|
||||
&warn.deprecated.feature-5-3-0.removed-6-0-0;
|
||||
&warn.deprecated.feature-5-3-0.removed-5-4-0;
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<simpara>
|
||||
@@ -102,7 +102,7 @@
|
||||
|
||||
<sect1 xml:id="security.magicquotes.whynot">
|
||||
<title>なぜマジッククオートを使用しないのか</title>
|
||||
&warn.deprecated.feature-5-3-0.removed-6-0-0;
|
||||
&warn.deprecated.feature-5-3-0.removed-5-4-0;
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<simpara>
|
||||
|
||||
Reference in New Issue
Block a user