cvs: phpdoc-ja /appendices migration5.xml

From: Date: Sun, 28 Mar 2004 06:15:28 +0000
Subject: cvs: phpdoc-ja /appendices migration5.xml
Groups: php.doc.ja 
Request: Send a blank email to doc-ja+get-693@lists.php.net to get a copy of this message
hirokawa Sun Mar 28 01:15:28 2004 EDT Modified files: /phpdoc-ja/appendices migration5.xml Log: sync with en. http://cvs.php.net/diff.php/phpdoc-ja/appendices/migration5.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-ja/appendices/migration5.xml diff -u phpdoc-ja/appendices/migration5.xml:1.1 phpdoc-ja/appendices/migration5.xml:1.2 --- phpdoc-ja/appendices/migration5.xml:1.1 Thu Feb 26 23:39:44 2004 +++ phpdoc-ja/appendices/migration5.xml Sun Mar 28 01:15:27 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.9 Maintainer: hirokawa Status: working --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.13 Maintainer: hirokawa Status: working --> <appendix id="migration5"> <title>PHP 4 から PHP 5への移行</title> @@ -70,22 +70,11 @@ 設定によらず常にargcおよびargvを作成するために行われました。 これにより、CLI版では、常にグローバル変数 $argc および $argv が設定されるようになりました。 -<!-- - $_SERVER - should be populated with argc and argv if - <link linkend="ini.variables-order">variables_order</link> - includes "S". If - you have specifically configured your system to not create $_SERVER, - then of course it shouldn't be there. - - The change was to always make argc - and argv available in the CLI version regardless of the <link - linkend="ini.variables-order">variables_order</link> setting. As in, - the CLI version will now always populate the global $argc and $argv - variables. ---> </simpara></listitem> <listitem><simpara> + プロパティを持たないオブジェクトはもはや"空"とはみなされません。 + </simpara></listitem> + <listitem><simpara> クラスは、使用前に宣言する必要があります。 </simpara></listitem> </itemizedlist> @@ -106,6 +95,26 @@ </example> </para> <para> + <example> + <title>プロパティを持たないオブジェクトはもはや"空"とはみなされない</title> + <programlisting role="php"> +<![CDATA[ +<?php +class test { } +$t = new test(); + +var_dump(empty($t)); // echo bool(false) + +if (!$t) { + // 実行される +} +?> + +]]> + </programlisting> + </example> + </para> + <para> 以下の例はPHP 4では有効でしたが、PHP 5では致命的なエラーを 発生します。 </para> @@ -153,7 +162,7 @@ <title>設定ファイルの移行</title> <para> SAPIモジュールの名前がphp4xxxからphp5xxxに変更されたため、 - 設定ファイルを変更すうr必要があります。 + 設定ファイルを変更する必要があります。 また、CLIおよびCGIのファイル名も変更されています。詳細については、 <link linkend="migration5.cli-cgi">対応するセクション</link>を 参照して下さい。 @@ -190,7 +199,8 @@ </informalexample> </para> <para> - 他のWebサーバの場合、CGIまたはSAPIモジュールのファイル名を変更する必要があります。 + 他のWebサーバの場合、CGIまたはSAPIモジュールのファイル名を変更する + 必要があります。 </para> </section> @@ -524,6 +534,9 @@ - は、バイナリハッシュデータを可読な形式に変換する際に各文字に保存するビット数 (4 から 6 まで)を指定します。 </simpara></listitem> + <listitem><simpara> + zend.ze1_compatibility_mode - Zend Engine 1 (PHP 4)互換モードを有効にします。 + </simpara></listitem> </itemizedlist> </section>

« previous php.doc.ja (#693) next »