cvs: phpdoc-ja / make_chm_index.html /appendices wrappers.xml /appendices/configure misc.xml /features commandline.xml /language
control-structures.xml types.xml /language/oop5 autoload.xml /reference/array/functions array-multisort.xml /reference/datetime/functions
strftime.xml strtotime.xml /reference/filesystem/functions fread.xml /reference/filter reference.xml /reference/filter/functions filter-var.xml
/reference/funchand/functions call-user-func-array.xml /reference/geoip/functions geoip-isp-by-name.xml /reference/iconv/functions
iconv-mime-encode.xml /reference/info/functions getopt.xml /reference/mysql/functions mysql-connect.xml mysql-db-query.xml
/reference/mysqli/functions mysqli-connect.xml /reference/outcontrol/functions ob-start.xml /reference/pcre pattern.syntax.xml /reference/session
ini.xml /reference/strings/functions strip-tags.xml strspn.xml /reference/var/functions isset.xml /reference/zip/functions
ziparchive-locatename.xm! l

From: Date: Sat, 24 Nov 2007 05:33:00 +0000
Subject: cvs: phpdoc-ja / make_chm_index.html /appendices wrappers.xml /appendices/configure misc.xml /features commandline.xml /language
control-structures.xml types.xml /language/oop5 autoload.xml /reference/array/functions array-multisort.xml /reference/datetime/functions
strftime.xml strtotime.xml /reference/filesystem/functions fread.xml /reference/filter reference.xml /reference/filter/functions filter-var.xml
/reference/funchand/functions call-user-func-array.xml /reference/geoip/functions geoip-isp-by-name.xml /reference/iconv/functions
iconv-mime-encode.xml /reference/info/functions getopt.xml /reference/mysql/functions mysql-connect.xml mysql-db-query.xml
/reference/mysqli/functions mysqli-connect.xml /reference/outcontrol/functions ob-start.xml /reference/pcre pattern.syntax.xml /reference/session
ini.xml /reference/strings/functions strip-tags.xml strspn.xml /reference/var/functions isset.xml /reference/zip/functions
ziparchive-locatename.xm! l
Groups: php.doc.ja 
Request: Send a blank email to doc-ja+get-1952@lists.php.net to get a copy of this message
takagi Sat Nov 24 05:33:00 2007 UTC Added files: /phpdoc-ja/reference/geoip/functions geoip-isp-by-name.xml Modified files: /phpdoc-ja/reference/zip/functions ziparchive-locatename.xml /phpdoc-ja/reference/var/functions isset.xml /phpdoc-ja/reference/strings/functions strspn.xml strip-tags.xml /phpdoc-ja/reference/session ini.xml /phpdoc-ja/reference/pcre pattern.syntax.xml /phpdoc-ja/reference/outcontrol/functions ob-start.xml /phpdoc-ja/reference/mysqli/functions mysqli-connect.xml /phpdoc-ja/reference/mysql/functions mysql-db-query.xml mysql-connect.xml /phpdoc-ja/reference/info/functions getopt.xml /phpdoc-ja/reference/iconv/functions iconv-mime-encode.xml /phpdoc-ja/reference/funchand/functions call-user-func-array.xml /phpdoc-ja/reference/filter/functions filter-var.xml /phpdoc-ja/reference/filter reference.xml /phpdoc-ja/reference/filesystem/functions fread.xml /phpdoc-ja/reference/datetime/functions strtotime.xml strftime.xml /phpdoc-ja/reference/array/functions array-multisort.xml /phpdoc-ja/language/oop5 autoload.xml /phpdoc-ja/language types.xml control-structures.xml /phpdoc-ja/features commandline.xml /phpdoc-ja/appendices/configure misc.xml /phpdoc-ja/appendices wrappers.xml /phpdoc-ja make_chm_index.html Log: sync with en.

http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/zip/functions/ziparchive-locatename.xml?r1=1.3&r2=1.4&diff_format=u Index: phpdoc-ja/reference/zip/functions/ziparchive-locatename.xml diff -u phpdoc-ja/reference/zip/functions/ziparchive-locatename.xml:1.3 phpdoc-ja/reference/zip/functions/ziparchive-locatename.xml:1.4 --- phpdoc-ja/reference/zip/functions/ziparchive-locatename.xml:1.3 Fri Jun 22 14:32:57 2007 +++ phpdoc-ja/reference/zip/functions/ziparchive-locatename.xml Sat Nov 24 05:32:55 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.4 Maintainer: takagi Status: ready --> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.5 Maintainer: takagi Status: ready --> <refentry xml:id="function.ziparchive-locatename" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>ZipArchive::locateName</refname> @@ -83,7 +83,7 @@ } $zip->close(); -if ($zip->open($file) === TRUE) { +if ($zip->open($file) !== TRUE) { exit('失敗'); } http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/var/functions/isset.xml?r1=1.8&r2=1.9&diff_format=u Index: phpdoc-ja/reference/var/functions/isset.xml diff -u phpdoc-ja/reference/var/functions/isset.xml:1.8 phpdoc-ja/reference/var/functions/isset.xml:1.9 --- phpdoc-ja/reference/var/functions/isset.xml:1.8 Sun Jul 22 07:02:17 2007 +++ phpdoc-ja/reference/var/functions/isset.xml Sat Nov 24 05:32:55 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.8 $ --> -<!-- EN-Revision: 1.18 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.9 $ --> +<!-- EN-Revision: 1.20 Maintainer: hirokawa Status: ready --> <!-- CREDITS: shimooka --> <refentry xml:id="function.isset" xmlns="http://docbook.org/ns/docbook"> <refnamediv> @@ -27,6 +27,11 @@ &null;バイト(<literal>"\0"</literal>)はPHPの定数 &null;と等価ではないことにも注意してください。 </para> + <para> + 複数のパラメータを渡した場合は、<function>isset</function> + はそれらすべてがセットされている場合にのみ &true; を返します。 + 左から順に評価を行い、セットされていない変数があった時点で処理を終了します。 + </para> </refsect1> <refsect1 role="parameters"> http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/strings/functions/strspn.xml?r1=1.7&r2=1.8&diff_format=u Index: phpdoc-ja/reference/strings/functions/strspn.xml diff -u phpdoc-ja/reference/strings/functions/strspn.xml:1.7 phpdoc-ja/reference/strings/functions/strspn.xml:1.8 --- phpdoc-ja/reference/strings/functions/strspn.xml:1.7 Sat Aug 11 04:15:46 2007 +++ phpdoc-ja/reference/strings/functions/strspn.xml Sat Nov 24 05:32:55 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.7 $ --> -<!-- EN-Revision: 1.9 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.8 $ --> +<!-- EN-Revision: 1.10 Maintainer: hirokawa Status: ready --> <!-- CREDITS: shimooka --> <refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.strspn"> <refnamediv> @@ -61,6 +61,7 @@ <listitem> <para> 調べ始める位置。 + 負の値を指定すると、文字列の末尾から数えた位置となります。 </para> </listitem> </varlistentry> @@ -69,6 +70,7 @@ <listitem> <para> 調べる文字列の長さ。 + 負の値を指定すると、文字列の末尾からの長さとなります。 </para> </listitem> </varlistentry> http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/strings/functions/strip-tags.xml?r1=1.8&r2=1.9&diff_format=u Index: phpdoc-ja/reference/strings/functions/strip-tags.xml diff -u phpdoc-ja/reference/strings/functions/strip-tags.xml:1.8 phpdoc-ja/reference/strings/functions/strip-tags.xml:1.9 --- phpdoc-ja/reference/strings/functions/strip-tags.xml:1.8 Sat Aug 11 04:15:46 2007 +++ phpdoc-ja/reference/strings/functions/strip-tags.xml Sat Nov 24 05:32:55 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.8 $ --> -<!-- EN-Revision: 1.16 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.9 $ --> +<!-- EN-Revision: 1.17 Maintainer: hirokawa Status: ready --> <!-- CREDITS: shimooka --> <refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.strip-tags"> <refnamediv> @@ -42,7 +42,7 @@ </para> <note> <para> - HTML コメントも削除されるようになりました。この機能はハードコードされており、 + HTML コメントや PHP タグも削除されるようになりました。この機能はハードコードされており、 <parameter>allowable_tags</parameter> で変更することはできません。 </para> </note> http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/session/ini.xml?r1=1.26&r2=1.27&diff_format=u Index: phpdoc-ja/reference/session/ini.xml diff -u phpdoc-ja/reference/session/ini.xml:1.26 phpdoc-ja/reference/session/ini.xml:1.27 --- phpdoc-ja/reference/session/ini.xml:1.26 Sun Sep 30 04:48:33 2007 +++ phpdoc-ja/reference/session/ini.xml Sat Nov 24 05:32:56 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.26 $ --> -<!-- EN-Revision: 1.53 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.27 $ --> +<!-- EN-Revision: 1.54 Maintainer: hirokawa Status: ready --> <!-- CREDITS: shimooka,takagi --> <section xml:id="session.configuration" xmlns="http://docbook.org/ns/docbook"> &reftitle.runtime; @@ -288,12 +288,13 @@ <listitem> <simpara> <literal>session.serialize_handler</literal> は、シリアル化または - シリアル化データを復元するために使用されるハンドラの名前を - 定義します。現在、( <literal>php</literal> という名前の) PHP 内部 - フォーマットおよび (<literal>wddx</literal> という名前の) WDDX が - サポートされています。WDDX は、PHP が<link - linkend="ref.wddx">WDDX サポート</link> を有効にしてコンパイル - されている場合のみ使用可能です。デフォルトは、 + シリアル化データを復元するために使用されるハンドラの名前を定義します。 + 現在、( <literal>php</literal> あるいは + <literal>php_binary</literal> という名前の) PHP + 内部フォーマットおよび (<literal>wddx</literal> という名前の) WDDX + がサポートされています。WDDX は、PHP が<link + linkend="ref.wddx">WDDX サポート</link> + を有効にしてコンパイルされている場合のみ使用可能です。デフォルトは、 <literal>php</literal> です。 </simpara> </listitem> http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/pcre/pattern.syntax.xml?r1=1.13&r2=1.14&diff_format=u Index: phpdoc-ja/reference/pcre/pattern.syntax.xml diff -u phpdoc-ja/reference/pcre/pattern.syntax.xml:1.13 phpdoc-ja/reference/pcre/pattern.syntax.xml:1.14 --- phpdoc-ja/reference/pcre/pattern.syntax.xml:1.13 Tue Sep 25 15:10:36 2007 +++ phpdoc-ja/reference/pcre/pattern.syntax.xml Sat Nov 24 05:32:56 2007 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.13 $ --> +<!-- $Revision: 1.14 $ --> <!-- splitted from ./ja/functions/pcre.xml, last change in rev 1.1 --> -<!-- EN-Revision: 1.17 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.18 Maintainer: hirokawa Status: ready --> <!-- Credits: haruki --> <refentry xml:id="reference.pcre.pattern.syntax" xmlns="http://docbook.org/ns/docbook"> <refnamediv> @@ -576,7 +576,7 @@ <para> これらの 1 バイト値を定義するエスケープシーケンスは、 文字クラスの内外部のいずれでも使用できます。加えて、文字クラス内では - エスケープシーケンス "\b" はバックスペース (16進 0x) として解釈されます。 + エスケープシーケンス "<literal>\b</literal>" はバックスペース (16進 0x) として解釈されます。 文字クラス外では、別の意味を有します(別記参照)。 </para> <para> @@ -601,6 +601,14 @@ </listitem> </varlistentry> <varlistentry> + <term><emphasis>\h</emphasis></term> + <listitem><simpara>水平方向の空白文字 (PHP 5.2.4 以降)</simpara></listitem> + </varlistentry> + <varlistentry> + <term><emphasis>\H</emphasis></term> + <listitem><simpara>水平方向の空白文字でない文字 (PHP 5.2.4 以降)</simpara></listitem> + </varlistentry> + <varlistentry> <term><emphasis>\s</emphasis></term> <listitem> <simpara> @@ -617,6 +625,14 @@ </listitem> </varlistentry> <varlistentry> + <term><emphasis>\v</emphasis></term> + <listitem><simpara>垂直方向の空白文字 (PHP 5.2.4 以降)</simpara></listitem> + </varlistentry> + <varlistentry> + <term><emphasis>\V</emphasis></term> + <listitem><simpara>垂直方向の空白文字でない文字 (PHP 5.2.4 以降)</simpara></listitem> + </varlistentry> + <varlistentry> <term><emphasis>\w</emphasis></term> <listitem> <simpara> @@ -757,6 +773,16 @@ というリテラルが続いたものにマッチします。 </para> + <para> + <literal>\K</literal> を使用すると、マッチの開始位置をリセットできます。 + これは PHP 5.2.4 以降で使用可能です。たとえば、パターン + <literal>foo\Kbar</literal> は "foobar" にマッチしますが、 + 結果は "bar" にマッチしたと報告されます。 + <literal>\K</literal> を使用しても、キャプチャした部分文字列には影響を及ぼしません。 + たとえば、パターン <literal>(foo)\Kbar</literal> が + "foobar" にマッチしたときの最初の部分文字列は "foo" です。 + </para> + </refsect2> <refsect2 xml:id="regexp.reference.unicode"> @@ -1497,6 +1523,13 @@ 行われないことが必要です。これには、上の例のように選択肢を使うか、 下限が 0 回の量指定子を使います。 </para> + + <para> + 名前を指定したサブパターンへの後方参照を行うには + <literal>(?P=name)</literal> とします。PHP 5.2.4 以降では、これ以外に + <literal>\k&lt;name&gt;</literal> や <literal>\k'name'</literal>、 + <literal>\k{name}</literal> などとすることも可能です。 + </para> </refsect2> <refsect2 xml:id="regexp.reference.assertions"> http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/outcontrol/functions/ob-start.xml?r1=1.11&r2=1.12&diff_format=u Index: phpdoc-ja/reference/outcontrol/functions/ob-start.xml diff -u phpdoc-ja/reference/outcontrol/functions/ob-start.xml:1.11 phpdoc-ja/reference/outcontrol/functions/ob-start.xml:1.12 --- phpdoc-ja/reference/outcontrol/functions/ob-start.xml:1.11 Fri Aug 17 21:04:01 2007 +++ phpdoc-ja/reference/outcontrol/functions/ob-start.xml Sat Nov 24 05:32:56 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.11 $ --> -<!-- EN-Revision: 1.24 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.12 $ --> +<!-- EN-Revision: 1.25 Maintainer: hirokawa Status: ready --> <!-- CREDITS: takagi --> <refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.ob-start"> <refnamediv> @@ -111,8 +111,8 @@ <listitem> <para> オプションのパラメータ <parameter>chunk_size</parameter> が渡された場合、 - 出力が <parameter>chunk_size</parameter> バイトを超えるたびに、 - 最初の改行の際にコールバック関数がコールされます。 + バッファの長さが <parameter>chunk_size</parameter> バイトを超えるたびに、 + 出力の後でバッファがフラッシュされます。 デフォルト値は 0 で、これはこの関数が最後に一度だけコールされることを意味します。 また、もうひとつの特別な値は 1 で、これを指定すると <parameter>chunk_size</parameter> が 4096 となります。 http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/mysqli/functions/mysqli-connect.xml?r1=1.6&r2=1.7&diff_format=u Index: phpdoc-ja/reference/mysqli/functions/mysqli-connect.xml diff -u phpdoc-ja/reference/mysqli/functions/mysqli-connect.xml:1.6 phpdoc-ja/reference/mysqli/functions/mysqli-connect.xml:1.7 --- phpdoc-ja/reference/mysqli/functions/mysqli-connect.xml:1.6 Fri Sep 21 20:58:38 2007 +++ phpdoc-ja/reference/mysqli/functions/mysqli-connect.xml Sat Nov 24 05:32:56 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.24 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.25 Maintainer: hirokawa Status: ready --> <!-- CREDITS: takagi --> <refentry xml:id="function.mysqli-connect" xmlns="http://docbook.org/ns/docbook"> <refnamediv> @@ -168,6 +168,19 @@ </screen> </refsect1> + <refsect1 role="notes"> + &reftitle.notes; + <note> + <para> + エラー "Can't create TCP/IP socket (10106)" が発生するのは、たいていは <link + linkend="ini.variables-order">variables_order</link> 設定ディレクティブに + <literal>E</literal> が含まれていない場合です。 + Windows では、これが含まれていなければ <literal>SYSTEMROOT</literal> + 環境変数が使用できず、PHP が Winsock の読み込みに失敗します。 + </para> + </note> + </refsect1> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/mysql/functions/mysql-db-query.xml?r1=1.6&r2=1.7&diff_format=u Index: phpdoc-ja/reference/mysql/functions/mysql-db-query.xml diff -u phpdoc-ja/reference/mysql/functions/mysql-db-query.xml:1.6 phpdoc-ja/reference/mysql/functions/mysql-db-query.xml:1.7 --- phpdoc-ja/reference/mysql/functions/mysql-db-query.xml:1.6 Fri Jun 22 14:32:17 2007 +++ phpdoc-ja/reference/mysql/functions/mysql-db-query.xml Sat Nov 24 05:32:56 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.12 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.14 Maintainer: hirokawa Status: ready --> <!-- CREDITS: takagi --> <refentry xml:id="function.mysql-db-query" xmlns="http://docbook.org/ns/docbook"> <refnamediv> http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/mysql/functions/mysql-connect.xml?r1=1.12&r2=1.13&diff_format=u Index: phpdoc-ja/reference/mysql/functions/mysql-connect.xml diff -u phpdoc-ja/reference/mysql/functions/mysql-connect.xml:1.12 phpdoc-ja/reference/mysql/functions/mysql-connect.xml:1.13 --- phpdoc-ja/reference/mysql/functions/mysql-connect.xml:1.12 Fri Jun 22 14:32:17 2007 +++ phpdoc-ja/reference/mysql/functions/mysql-connect.xml Sat Nov 24 05:32:56 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.12 $ --> -<!-- EN-Revision: 1.22 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.13 $ --> +<!-- EN-Revision: 1.23 Maintainer: hirokawa Status: ready --> <!-- CREDITS: takagi --> <refentry xml:id="function.mysql-connect" xmlns="http://docbook.org/ns/docbook"> <refnamediv> @@ -255,6 +255,15 @@ 接続に失敗した場合のエラーメッセージを出力しないようにできます。 </para> </note> + <note> + <para> + エラー "Can't create TCP/IP socket (10106)" が発生するのは、たいていは <link + linkend="ini.variables-order">variables_order</link> 設定ディレクティブに + <literal>E</literal> が含まれていない場合です。 + Windows では、これが含まれていなければ <literal>SYSTEMROOT</literal> + 環境変数が使用できず、PHP が Winsock の読み込みに失敗します。 + </para> + </note> </refsect1> <refsect1 role="seealso"> http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/info/functions/getopt.xml?r1=1.9&r2=1.10&diff_format=u Index: phpdoc-ja/reference/info/functions/getopt.xml diff -u phpdoc-ja/reference/info/functions/getopt.xml:1.9 phpdoc-ja/reference/info/functions/getopt.xml:1.10 --- phpdoc-ja/reference/info/functions/getopt.xml:1.9 Sun Oct 14 22:05:12 2007 +++ phpdoc-ja/reference/info/functions/getopt.xml Sat Nov 24 05:32:56 2007 @@ -1,8 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.9 $ --> -<!-- EN-Revision: 1.16 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.10 $ --> +<!-- EN-Revision: 1.17 Maintainer: hirokawa Status: ready --> <!-- CREDITS: takagi --> -<refentry xml:id="function.getopt" xmlns="http://docbook.org/ns/docbook"> +<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.getopt"> <refnamediv> <refname>getopt</refname> <refpurpose>コマンドライン引数のリストからオプションを取得する</refpurpose> @@ -16,9 +16,7 @@ <methodparam choice="opt"><type>array</type><parameter>longopts</parameter></methodparam> </methodsynopsis> <para> - オプション/引数のペアを連想配列で返します。 - オプションのフォーマットは <parameter>options</parameter> で指定します。 - エラーの場合 &false; を返します。 + スクリプトに渡されたオプションをパースします。 </para> </refsect1> @@ -29,32 +27,71 @@ <varlistentry> <term><parameter>options</parameter></term> <listitem> - <para> - <parameter>options</parameter> 引数は次のような内容を書きます: - 引数を特定するための個別の文字と、それに続くコロン。例えば、 - オプション文字列 <literal>x</literal> は <literal>-x</literal> - というオプションを認識します。<literal>x:</literal> は - <literal>-x argument</literal> というオプションとその引数を認識します。 - オプションと引数の間に空白があるかどうかは考慮されません。 - </para> + <simpara> + この文字列の各文字をオプション文字として使用し、 + スクリプトにハイフンひとつ (<literal>-</literal>) + で始まるオプションとして渡された内容とマッチさせます。 + </simpara> + <simpara> + たとえば、オプション文字列 <literal>"x"</literal> は + <literal>-x</literal> というオプションを認識します。 + </simpara> </listitem> </varlistentry> <varlistentry> <term><parameter>longopts</parameter></term> <listitem> - <para> - </para> + <simpara> + オプションの配列。 + この配列の各要素をオプション文字列として使用し、 + スクリプトにハイフンふたつ (<literal>--</literal>) + で始まるオプションとして渡された内容とマッチさせます。 + </simpara> + <simpara> + たとえば、longopts の要素 <literal>"opt"</literal> は + <literal>--opt</literal> というオプションを認識します。 + </simpara> + <note> + <simpara> + PHP5.3.0 より前のバージョンでは、 + このパラメータは一部のシステムでしか使用できません。 + </simpara> + </note> </listitem> </varlistentry> </variablelist> </para> + <para> + <parameter>options</parameter> パラメータに含まれる要素には次のようなものがあります。 + <simplelist> + <member>単一の文字 (値を受け付けない)</member> + <member>文字の後にコロンをひとつ続けたもの (値が必須であるパラメータ)</member> + <member>文字の後にコロンをふたつ続けたもの (値がオプションであるパラメータ)</member> + </simplelist> + オプションの値は、文字列の後の最初の引数となります。 + 値の前に空白があるかどうかは関係ありません。 + <note> + <simpara> + オプションの値で、<literal>" "</literal> (空白) を区切り文字として使用することはできません。 + </simpara> + </note> + </para> + <note> + <para> + <parameter>options</parameter> と + <parameter>longopts</parameter> の書式はほぼ同じです。唯一の違いは、 + <parameter>longopts</parameter> はオプションの配列 + (その各要素がオプションとなる) を受け取るけれども <parameter>options</parameter> + は文字列 (その各文字がオプションとなる) を受け取るということです。 + </para> + </note> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> この関数はオプション/引数のペアを連想配列で返します。 - オプションが引数を持たない場合、値には &false; がセットされます。 + 失敗した場合は &false; を返します。 </para> </refsect1> @@ -86,25 +123,125 @@ <refsect1 role="examples"> &reftitle.examples; <para> - <example> + <example xml:id="getopt.examples-1"> <title><function>getopt</function> の例</title> <programlisting role="php"> <![CDATA[ <?php -// コマンドライン($GLOBALS['argv'])をパースする $options = getopt("f:hp:"); +var_dump($options); +?> +]]> + </programlisting> + <para> + 上のスクリプトを <literal>php script.php -fvalue -h</literal> + として実行すると、次のようになります。 + </para> + <screen> +<![CDATA[ +array(2) { + ["f"]=> + string(5) "value" + ["h"]=> + bool(false) +} +]]> + </screen> + </example> + </para> + <para> + <example xml:id="getopt.examples-2"> + <title><function>getopt</function> の例 その2</title> + <programlisting role="php"> +<![CDATA[ +<?php +$shortopts = ""; +$shortopts .= "f:"; // 値が必須 +$shortopts .= "v::"; // 値がオプション +$shortopts .= "abc"; // これらのオプションは値を受け取りません + +$longopts = array( + "required:", // 値が必須 + "optional::", // 値がオプション + "option", // 値なし + "opt", // 値なし +); +$options = getopt($shortopts, $longopts); +var_dump($options); ?> ]]> </programlisting> + <para> + 上のスクリプトを <literal>php script.php -f "value for f" -v + -a --required value --optional="optional value" --option</literal> + として実行すると、次のようになります。 + </para> + <screen> +<![CDATA[ +array(6) { + ["f"]=> + string(11) "value for f" + ["v"]=> + bool(false) + ["a"]=> + bool(false) + ["required"]=> + string(5) "value" + ["optional"]=> + string(14) "optional value" + ["option"]=> + bool(false) +} +]]> + </screen> + </example> + </para> + <para> + <example xml:id="getopt.examples-3"> + <title><function>getopt</function> の例 その3</title> + <para>複数のオプションを一度に渡す例</para> + <programlisting role="php"> +<![CDATA[ +<?php +$options = getopt("abc"); +var_dump($options); +?> +]]> + </programlisting> + <para> + 上のスクリプトを <literal>php script.php -aaac</literal> + として実行すると、次のようになります。 + </para> + <screen> +<![CDATA[ +array(2) { + ["a"]=> + array(3) { + [0]=> + bool(false) + [1]=> + bool(false) + [2]=> + bool(false) + } + ["c"]=> + bool(false) +} +]]> + </screen> </example> </para> </refsect1> -<!-- <refsect1 role="notes"> &reftitle.notes; + <note> + <para> + <link linkend="ini.register-argc-argv">register_argc_argv</link> + オプションを有効にしないと、この館数は動作しません。 + </para> + </note> </refsect1> ---> </refentry> http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/iconv/functions/iconv-mime-encode.xml?r1=1.6&r2=1.7&diff_format=u Index: phpdoc-ja/reference/iconv/functions/iconv-mime-encode.xml diff -u phpdoc-ja/reference/iconv/functions/iconv-mime-encode.xml:1.6 phpdoc-ja/reference/iconv/functions/iconv-mime-encode.xml:1.7 --- phpdoc-ja/reference/iconv/functions/iconv-mime-encode.xml:1.6 Fri Jun 22 14:32:00 2007 +++ phpdoc-ja/reference/iconv/functions/iconv-mime-encode.xml Sat Nov 24 05:32:57 2007 @@ -1,6 +1,6 @@ <?xml version='1.0' encoding='utf-8'?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.14 Maintainer: takagi Status: ready --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.15 Maintainer: takagi Status: ready --> <refentry xml:id="function.iconv-mime-encode" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>iconv_mime_encode</refname> @@ -71,7 +71,7 @@ <tbody> <row> <entry>scheme</entry> - <entry><type>boolean</type></entry> + <entry><type>string</type></entry> <entry> フィールドの値のエンコード方法を指定します。"B" か "Q" の どちらかを指定することになるでしょう。"B" は http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/funchand/functions/call-user-func-array.xml?r1=1.9&r2=1.10&diff_format=u Index: phpdoc-ja/reference/funchand/functions/call-user-func-array.xml diff -u phpdoc-ja/reference/funchand/functions/call-user-func-array.xml:1.9 phpdoc-ja/reference/funchand/functions/call-user-func-array.xml:1.10 --- phpdoc-ja/reference/funchand/functions/call-user-func-array.xml:1.9 Fri Jun 22 14:31:51 2007 +++ phpdoc-ja/reference/funchand/functions/call-user-func-array.xml Sat Nov 24 05:32:57 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.9 $ --> -<!-- EN-Revision: 1.17 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.10 $ --> +<!-- EN-Revision: 1.18 Maintainer: hirokawa Status: ready --> <!-- CREDITS: takagi --> <refentry xml:id="function.call-user-func-array" xmlns="http://docbook.org/ns/docbook"> <refnamediv> @@ -84,6 +84,18 @@ </para> </refsect1> + <refsect1 role="notes"> + &reftitle.notes; + <note> + <para> + <parameter>param_arr</parameter> 内で参照される変数は、 + 関数に参照渡しされます。それ以外は値渡しとなります。 + つまり、パラメータが値渡しとなるか参照渡しとなるのかは、 + 関数のシグネチャには依存しないということです。 + </para> + </note> + </refsect1> + <refsect1 role="seealso"> &reftitle.seealso; <para> http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/filter/functions/filter-var.xml?r1=1.3&r2=1.4&diff_format=u Index: phpdoc-ja/reference/filter/functions/filter-var.xml diff -u phpdoc-ja/reference/filter/functions/filter-var.xml:1.3 phpdoc-ja/reference/filter/functions/filter-var.xml:1.4 --- phpdoc-ja/reference/filter/functions/filter-var.xml:1.3 Fri Jun 22 14:31:51 2007 +++ phpdoc-ja/reference/filter/functions/filter-var.xml Sat Nov 24 05:32:57 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.4 Maintainer: takagi Status: ready --> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.5 Maintainer: takagi Status: ready --> <!-- Generated by xml_proto.php v2.4. Found in /scripts directory of phpdoc. --> <refentry xml:id="function.filter-var" xmlns="http://docbook.org/ns/docbook"> <refnamediv> @@ -25,7 +25,7 @@ <term><parameter>variable</parameter></term> <listitem> <para> - フィルタリングする値。配列の場合は再帰的に処理されます。 + フィルタリングする値。 </para> </listitem> </varlistentry> http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/filter/reference.xml?r1=1.10&r2=1.11&diff_format=u Index: phpdoc-ja/reference/filter/reference.xml diff -u phpdoc-ja/reference/filter/reference.xml:1.10 phpdoc-ja/reference/filter/reference.xml:1.11 --- phpdoc-ja/reference/filter/reference.xml:1.10 Fri Aug 17 21:04:02 2007 +++ phpdoc-ja/reference/filter/reference.xml Sat Nov 24 05:32:57 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.10 $ --> -<!-- EN-Revision: 1.12 Maintainer: takagi Status: ready --> +<!-- $Revision: 1.11 $ --> +<!-- EN-Revision: 1.13 Maintainer: takagi Status: ready --> <!-- Purpose: basic.vartype --> <!-- Membership: pecl --> <!-- Generated by xml_proto.php v2.4. Found in /scripts directory of phpdoc. --> @@ -221,7 +221,7 @@ <entry></entry> <entry></entry> <entry> - 数字および <literal>+-</literal> + 数字、プラス記号、マイナス記号 以外のすべての文字を取り除きます。 </entry> </row> http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/filesystem/functions/fread.xml?r1=1.15&r2=1.16&diff_format=u Index: phpdoc-ja/reference/filesystem/functions/fread.xml diff -u phpdoc-ja/reference/filesystem/functions/fread.xml:1.15 phpdoc-ja/reference/filesystem/functions/fread.xml:1.16 --- phpdoc-ja/reference/filesystem/functions/fread.xml:1.15 Mon Sep 17 00:38:24 2007 +++ phpdoc-ja/reference/filesystem/functions/fread.xml Sat Nov 24 05:32:57 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.15 $ --> -<!-- EN-Revision: 1.24 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.16 $ --> +<!-- EN-Revision: 1.25 Maintainer: hirokawa Status: ready --> <refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.fread"> <refnamediv> <refname>fread</refname> @@ -14,15 +14,34 @@ <methodparam><type>resource</type><parameter>handle</parameter></methodparam> <methodparam><type>int</type><parameter>length</parameter></methodparam> </methodsynopsis> - <simpara> - <function>fread</function>は<parameter>handle</parameter>が指す - ファイルポインタから最高<parameter>length</parameter>バイト - 読み込みます。読み込みは、最高 <parameter>length</parameter> バイト分 - 読み込まれたか、EOF(ファイルの終端)に達した場合、 - パケットが利用可能になった場合(ネットワークストリームの場合)、 - あるいは(ユーザ定義ストリームをオープンした後で) - 8192 バイトが読み込まれた場合のうち、最初に発生した事象により中止されます。 - </simpara> + <para> + <function>fread</function> は、<parameter>handle</parameter> + が指すファイルポインタから最高 <parameter>length</parameter> + バイト読み込みます。 + 以下のいずれかの条件を満たしたら、読み込みを終了します。 + <itemizedlist> + <listitem> + <simpara> + <parameter>length</parameter> バイトぶん読み込んだ + </simpara> + </listitem> + <listitem> + <simpara> + EOF (ファイルの終端) に達した + </simpara> + </listitem> + <listitem> + <simpara> + パケットが利用可能になった (ネットワークストリームの場合) + </simpara> + </listitem> + <listitem> + <simpara> + 8192 バイトぶん読み込んだ (ユーザ定義ストリームをオープンした後) + </simpara> + </listitem> + </itemizedlist> + </para> </refsect1> <refsect1 role="parameters"> http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/datetime/functions/strtotime.xml?r1=1.15&r2=1.16&diff_format=u Index: phpdoc-ja/reference/datetime/functions/strtotime.xml diff -u phpdoc-ja/reference/datetime/functions/strtotime.xml:1.15 phpdoc-ja/reference/datetime/functions/strtotime.xml:1.16 --- phpdoc-ja/reference/datetime/functions/strtotime.xml:1.15 Fri Jun 22 14:31:43 2007 +++ phpdoc-ja/reference/datetime/functions/strtotime.xml Sat Nov 24 05:32:57 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.15 $ --> -<!-- EN-Revision: 1.24 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.16 $ --> +<!-- EN-Revision: 1.25 Maintainer: hirokawa Status: ready --> <!-- CREDITS: shimooka --> <refentry xml:id="function.strtotime" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> @@ -17,11 +17,10 @@ <methodparam choice="opt"><type>int</type><parameter>now</parameter></methodparam> </methodsynopsis> <simpara> - この関数は US 英文形式の日付を含む文字列が指定されることを期待してお - り、<parameter>now</parameter> で与えられたその形式から - Unix タイムスタンプへの変換を試みます。 - 引数が指定されない場合には現在日時が使用されます。 - 失敗すると <literal>-1</literal> を返します。 + この関数は US 英文形式の日付を含む文字列が指定されることを期待しており、 + <parameter>now</parameter> で与えられたその形式から + Unix タイムスタンプ (1970 年 1 月 1 日 00:00:00 GMT からの経過秒数) への変換を試みます。 + <parameter>now</parameter> が指定されていない場合は現在日時に変換します。 </simpara> <para> この関数は、タイムスタンプを計算するために (利用可能であれば) 環境変数 http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/datetime/functions/strftime.xml?r1=1.10&r2=1.11&diff_format=u Index: phpdoc-ja/reference/datetime/functions/strftime.xml diff -u phpdoc-ja/reference/datetime/functions/strftime.xml:1.10 phpdoc-ja/reference/datetime/functions/strftime.xml:1.11 --- phpdoc-ja/reference/datetime/functions/strftime.xml:1.10 Fri Jun 22 14:31:42 2007 +++ phpdoc-ja/reference/datetime/functions/strftime.xml Sat Nov 24 05:32:58 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.10 $ --> -<!-- EN-Revision: 1.19 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.11 $ --> +<!-- EN-Revision: 1.20 Maintainer: hirokawa Status: ready --> <!-- CREDITS: shimooka --> <refentry xml:id="function.strftime" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> @@ -244,6 +244,9 @@ </listitem> </itemizedlist> </para> + <para> + このパラメータの最大長は 1023 文字です。 + </para> </listitem> </varlistentry> http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/array/functions/array-multisort.xml?r1=1.8&r2=1.9&diff_format=u Index: phpdoc-ja/reference/array/functions/array-multisort.xml diff -u phpdoc-ja/reference/array/functions/array-multisort.xml:1.8 phpdoc-ja/reference/array/functions/array-multisort.xml:1.9 --- phpdoc-ja/reference/array/functions/array-multisort.xml:1.8 Fri Jun 22 14:31:37 2007 +++ phpdoc-ja/reference/array/functions/array-multisort.xml Sat Nov 24 05:32:58 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.8 $ --> -<!-- EN-Revision: 1.19 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.9 $ --> +<!-- EN-Revision: 1.20 Maintainer: hirokawa Status: ready --> <!-- CREDITS: takagi --> <refentry xml:id="function.array-multisort" xmlns="http://docbook.org/ns/docbook"> <refnamediv> @@ -78,8 +78,8 @@ <programlisting role="php"> <![CDATA[ <?php -$ar1 = array("10", 100, 100, "a"); -$ar2 = array(1, 3, "2", 1); +$ar1 = array(10, 100, 100, 0); +$ar2 = array(1, 3, 2, 4); array_multisort($ar1, $ar2); var_dump($ar1); @@ -88,23 +88,23 @@ ]]> </programlisting> <para> - この例では、ソートの後で、最初の配列は、10,"a", 100, 100 となります。 - 2番目の配列は、1, 1, "2", 3 を有します。最初の配列 (100 および + この例では、ソートの後で、最初の配列は、0, 10, 100, 100 となります。 + 2番目の配列は、4, 1, 2, 3 を有します。最初の配列 (100 および 100) の同じエントリに対応している二番目の配列のエントリは、 同時にソートされます。 </para> <screen> <![CDATA[ array(4) { - [0]=> string(2) "10" - [1]=> string(1) "a" + [0]=> int(0) + [1]=> int(10) [2]=> int(100) [3]=> int(100) } array(4) { - [0]=> int(1) + [0]=> int(4) [1]=> int(1) - [2]=> string(1) "2" + [2]=> int(2) [3]=> int(3) } ]]> http://cvs.php.net/viewvc.cgi/phpdoc-ja/language/oop5/autoload.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc-ja/language/oop5/autoload.xml diff -u phpdoc-ja/language/oop5/autoload.xml:1.5 phpdoc-ja/language/oop5/autoload.xml:1.6 --- phpdoc-ja/language/oop5/autoload.xml:1.5 Fri Jun 22 14:31:36 2007 +++ phpdoc-ja/language/oop5/autoload.xml Sat Nov 24 05:32:58 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.8 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.9 Maintainer: hirokawa Status: ready --> <sect1 xml:id="language.oop5.autoload" xmlns="http://docbook.org/ns/docbook"> <title>オブジェクトのオートローディング</title> @@ -32,6 +32,14 @@ で実行している場合は使用できません。 </para> </note> + <note> + <para> + クラス名をたとえば <function>call_user_func</function> などで使用する場合、 + <literal>../</literal> のような危険な文字が含まれることもあり得ます。 + このような関数にはユーザの入力を渡さないことをおすすめします。 + あるいは最低限 <function>__autoload</function> の中で入力内容を検証するようにします。 + </para> + </note> <para> <example> <title>オートロードの例</title> http://cvs.php.net/viewvc.cgi/phpdoc-ja/language/types.xml?r1=1.75&r2=1.76&diff_format=u Index: phpdoc-ja/language/types.xml diff -u phpdoc-ja/language/types.xml:1.75 phpdoc-ja/language/types.xml:1.76 --- phpdoc-ja/language/types.xml:1.75 Fri Nov 9 23:48:50 2007 +++ phpdoc-ja/language/types.xml Sat Nov 24 05:32:58 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.75 $ --> -<!-- EN-Revision: 1.189 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.76 $ --> +<!-- EN-Revision: 1.192 Maintainer: hirokawa Status: ready --> <!-- CREDITS: takagi, shimooka --> <chapter xml:id="language.types" xmlns="http://docbook.org/ns/docbook"> <title>型</title> @@ -748,6 +748,14 @@ <entry>水平タブ (HT またはアスキーの 0x09 (9))</entry> </row> <row> + <entry><literal>\v</literal></entry> + <entry>垂直タブ (VT またはアスキーの 0x0B (11)) (PHP 5.2.5 以降)</entry> + </row> + <row> + <entry><literal>\f</literal></entry> + <entry>フォームフィード (FF またはアスキーの 0x0C (12)) (PHP 5.2.5 以降)</entry> + </row> + <row> <entry><literal>\\</literal></entry> <entry>バックスラッシュ</entry> </row> @@ -1174,6 +1182,8 @@ <para> <type>integer</type> (整数) や浮動小数点数 (<type>float</type>) は その数値の数字として文字列に変換されます (指数の表記や浮動小数点数を含めて)。 + 浮動小数点数は、指数表記 + (<literal>4.1E+6</literal>) を使用して変換されます。 </para> <note> <para> http://cvs.php.net/viewvc.cgi/phpdoc-ja/language/control-structures.xml?r1=1.66&r2=1.67&diff_format=u Index: phpdoc-ja/language/control-structures.xml diff -u phpdoc-ja/language/control-structures.xml:1.66 phpdoc-ja/language/control-structures.xml:1.67 --- phpdoc-ja/language/control-structures.xml:1.66 Fri Nov 16 10:56:50 2007 +++ phpdoc-ja/language/control-structures.xml Sat Nov 24 05:32:58 2007 @@ -1,20 +1,23 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.66 $ --> -<!-- EN-Revision: 1.154 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.67 $ --> +<!-- EN-Revision: 1.157 Maintainer: hirokawa Status: ready --> <!-- CREDITS: takagi, shimooka --> <chapter xml:id="language.control-structures" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>制御構造</title> - <simpara> - 全ての PHP スクリプトは、一連の文からなります。 - 文としては、代入、関数コール、ループ、条件文、そして何もしない文(空の文) - さえ使用することができます。 - 文は、通常セミコロンで終了します。加えて、文は、中括弧によるグループ文で - カプセル化することによりグループ化することが可能です。 - グループ文は、同時に文にもなります。 - 本章では、様々な文の型が記述されています。 - </simpara> + <sect1 xml:id="control-structures.intro"> + <title>導入</title> + <simpara> + 全ての PHP スクリプトは、一連の文からなります。 + 文としては、代入、関数コール、ループ、条件文、そして何もしない文(空の文) + さえ使用することができます。 + 文は、通常セミコロンで終了します。加えて、文は、中括弧によるグループ文で + カプセル化することによりグループ化することが可能です。 + グループ文は、同時に文にもなります。 + 本章では、様々な文の型が記述されています。 + </simpara> + </sect1> <sect1 xml:id="control-structures.if"> <title><literal>if</literal></title> @@ -382,9 +385,8 @@ </simpara> <simpara> 各式は空にすることもできますし、複数の式をカンマで区切って指定することもできます。 - 式2 でカンマ区切りの式を使用すると、それらを - <link linkend="language.operators.logical">|| 演算子</link> - で連結したのと同じことになりますが、 || より優先順位は低くなります。 + <varname>式2</varname> でカンマ区切りの式を使用すると、 + すべての式を評価します。しかし、結果として取得するのは最後の式の結果となります。 <varname>式2</varname> を空にすると、無限実行ループになります (PHP は、この状態を C 言語のように暗黙の内に &true; とみなします)。 <literal>for</literal>論理式を使用するよりも条件付 http://cvs.php.net/viewvc.cgi/phpdoc-ja/features/commandline.xml?r1=1.18&r2=1.19&diff_format=u Index: phpdoc-ja/features/commandline.xml diff -u phpdoc-ja/features/commandline.xml:1.18 phpdoc-ja/features/commandline.xml:1.19 --- phpdoc-ja/features/commandline.xml:1.18 Fri Jun 22 14:31:33 2007 +++ phpdoc-ja/features/commandline.xml Sat Nov 24 05:32:59 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.18 $ --> -<!-- EN-Revision: 1.50 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.19 $ --> +<!-- EN-Revision: 1.52 Maintainer: hirokawa Status: ready --> <!-- CREDITS: shimooka,takagi --> <chapter xml:id="features.commandline" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>PHP をコマンドラインから使用する</title> @@ -295,6 +295,12 @@ これらのストリームを明示的に閉じる必要はありません。これは、 PHP により自動的に行われます。 </para> + <note> + <para> + これらの定数は、PHP スクリプトを + <literal>stdin</literal> から読み込んだ場合は使用できません。 + </para> + </note> </listitem> <listitem> <para> @@ -427,6 +433,12 @@ <literal>.php</literal> で終わる必要がなく、任意の名前や拡張子を 使用することができます。 </para> + <note> + <para> + <option>-f</option> スイッチを使用している時にスクリプトに引数を渡したい場合は、 + 最初の引数として <literal>--</literal> を渡す必要があります。 + </para> + </note> </listitem> <listitem> <para> @@ -700,6 +712,13 @@ 実行します。このスイッチはオプションで省略することもできます。 実行するスクリプトを指定するだけで充分です。 </para> + <note> + <para> + 引数をスクリプトに渡すには、最初の引数を + <literal>--</literal> としなければなりません。 + そうしないと、PHP は渡された内容を PHP のオプションとみなしてしまいます。 + </para> + </note> </entry> </row> <row> http://cvs.php.net/viewvc.cgi/phpdoc-ja/appendices/configure/misc.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc-ja/appendices/configure/misc.xml diff -u phpdoc-ja/appendices/configure/misc.xml:1.2 phpdoc-ja/appendices/configure/misc.xml:1.3 --- phpdoc-ja/appendices/configure/misc.xml:1.2 Fri Jun 22 14:31:32 2007 +++ phpdoc-ja/appendices/configure/misc.xml Sat Nov 24 05:32:59 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.2 Maintainer: takagi Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.4 Maintainer: takagi Status: ready --> <sect3 xml:id="configure.options.misc" xmlns="http://docbook.org/ns/docbook"> <title>一般的なオプション</title> <variablelist> @@ -188,7 +188,8 @@ </term> <listitem> <para> - メモリ制限(memory limit)のサポートつきでコンパイルします。 + メモリ制限(memory limit)のサポートつきでコンパイルします + (PHP 5.2.1 以降では使用できず、常に有効となります)。 </para> </listitem> </varlistentry> @@ -198,8 +199,8 @@ </term> <listitem> <para> - URL を指定した fopen で、HTTP や FTP を経由してファイルを開く機能を - 無効にします。 + URL を指定した fopen で、HTTP や FTP を経由してファイルを開く機能を無効にします + (PHP 5.2.5 以降では使用できません)。 </para> </listitem> </varlistentry> http://cvs.php.net/viewvc.cgi/phpdoc-ja/appendices/wrappers.xml?r1=1.24&r2=1.25&diff_format=u Index: phpdoc-ja/appendices/wrappers.xml diff -u phpdoc-ja/appendices/wrappers.xml:1.24 phpdoc-ja/appendices/wrappers.xml:1.25 --- phpdoc-ja/appendices/wrappers.xml:1.24 Fri Aug 17 21:04:03 2007 +++ phpdoc-ja/appendices/wrappers.xml Sat Nov 24 05:32:59 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.24 $ --> -<!-- EN-Revision: 1.73 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.25 $ --> +<!-- EN-Revision: 1.74 Maintainer: hirokawa Status: ready --> <!-- CREDITS: takagi --> <appendix xml:id="wrappers" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>サポートされるプロトコル/ラッパー</title> @@ -972,6 +972,9 @@ </tgroup> </table> </para> + <para> + <link linkend="ref.zip">ZIP 拡張モジュール</link> は <filename>zip:</filename> ラッパーを登録します。 + </para> </section> <section xml:id="wrappers.data"> http://cvs.php.net/viewvc.cgi/phpdoc-ja/make_chm_index.html?r1=1.2&r2=1.3&diff_format=u Index: phpdoc-ja/make_chm_index.html diff -u phpdoc-ja/make_chm_index.html:1.2 phpdoc-ja/make_chm_index.html:1.3 --- phpdoc-ja/make_chm_index.html:1.2 Tue Jan 2 05:56:52 2007 +++ phpdoc-ja/make_chm_index.html Sat Nov 24 05:32:59 2007 @@ -1,6 +1,6 @@ <HTML> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.4 Maintainer: takagi Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.5 Maintainer: takagi Status: ready --> <HEAD> <TITLE>PHP マニュアル</TITLE> <META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=UTF-8"> @@ -27,6 +27,7 @@ <div class="author">Damien Seguy</div> <div class="author">Jakub Vrana</div> <H4 CLASS="EDITEDBY">Edited by</H4> +<H3 CLASS="editor">Philip Olson</H3> <H3 CLASS="editor">Rui Hirokawa</H3> <SPAN CLASS="collab"><SPAN CLASS="collabname">PHP 日本語マニュアル翻訳プロジェクト:</SPAN><BR></SPAN> <SPAN CLASS="collab"><SPAN CLASS="collabname">Chihiro Higuchi</SPAN><BR></SPAN> http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/geoip/functions/geoip-isp-by-name.xml?view=markup&rev=1.1 Index: phpdoc-ja/reference/geoip/functions/geoip-isp-by-name.xml +++ phpdoc-ja/reference/geoip/functions/geoip-isp-by-name.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: takagi Status: ready --> <refentry xml:id="function.geoip-isp-by-name" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>geoip_isp_by_name</refname> <refpurpose>インターネットサービスプロバイダ (ISP) 名を取得する</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>string</type><methodname>geoip_isp_by_name</methodname> <methodparam><type>string</type><parameter>hostname</parameter></methodparam> </methodsynopsis> <para> <function>geoip_isp_by_name</function> 関数は、 IP アドレスに対応するインターネットサービスプロバイダ (ISP) 名を返します。 </para> <para> 現在この関数を使用できるのは、商用の GeoIP ISP Edition を購入した人だけです。 適切なデータベースが見つからない場合には警告が発生します。 </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>hostname</parameter></term> <listitem> <para> ホスト名あるいは IP アドレス。 </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> 成功した場合には ISP 名、 アドレスがデータベースで見つからない場合には &false; を返します。 </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title><function>geoip_isp_by_name</function> の例</title> <para> これは、ホスト example.com の ISP 名を表示します。 </para> <programlisting role="php"> <![CDATA[ <?php $isp = geoip_isp_by_name('www.example.com'); if ($isp) { echo 'This host IP is from ISP: ' . $isp; } ?> ]]> </programlisting> &example.outputs; <screen> <![CDATA[ This host IP is allocated to: ICANN c/o Internet Assigned Numbers Authority ]]> </screen> </example> </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->
« previous php.doc.ja (#1952) next »