cvs: phpdoc-ja / language-snippets.ent /language/oop5 basic.xml /reference/apache/functions apache-getenv.xml /reference/ctype/functions
ctype-alnum.xml /reference/filesystem constants.xml /reference/filesystem/functions pathinfo.xml /reference/filter/functions filter-data.xml
input-get-args.xml input-get.xml /reference/mbstring/functions mb-encode-mimeheader.xml /reference/ps configure.xml /reference/rar reference.xml
/reference/xmlreader constants.xml

From: Date: Thu, 27 Jul 2006 03:31:29 +0000
Subject: cvs: phpdoc-ja / language-snippets.ent /language/oop5 basic.xml /reference/apache/functions apache-getenv.xml /reference/ctype/functions
ctype-alnum.xml /reference/filesystem constants.xml /reference/filesystem/functions pathinfo.xml /reference/filter/functions filter-data.xml
input-get-args.xml input-get.xml /reference/mbstring/functions mb-encode-mimeheader.xml /reference/ps configure.xml /reference/rar reference.xml
/reference/xmlreader constants.xml
Groups: php.doc.ja 
Request: Send a blank email to doc-ja+get-1585@lists.php.net to get a copy of this message
takagi Thu Jul 27 03:31:29 2006 UTC Modified files: /phpdoc-ja/reference/xmlreader constants.xml /phpdoc-ja/reference/rar reference.xml /phpdoc-ja/reference/ps configure.xml /phpdoc-ja/reference/mbstring/functions mb-encode-mimeheader.xml /phpdoc-ja/reference/filter/functions input-get.xml input-get-args.xml filter-data.xml /phpdoc-ja/reference/filesystem/functions pathinfo.xml /phpdoc-ja/reference/filesystem constants.xml /phpdoc-ja/reference/ctype/functions ctype-alnum.xml /phpdoc-ja/reference/apache/functions apache-getenv.xml /phpdoc-ja/language/oop5 basic.xml /phpdoc-ja language-snippets.ent Log: sync with en.

http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/xmlreader/constants.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc-ja/reference/xmlreader/constants.xml diff -u phpdoc-ja/reference/xmlreader/constants.xml:1.2 phpdoc-ja/reference/xmlreader/constants.xml:1.3 --- phpdoc-ja/reference/xmlreader/constants.xml:1.2 Wed Dec 14 23:59:49 2005 +++ phpdoc-ja/reference/xmlreader/constants.xml Thu Jul 27 03:31:28 2006 @@ -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.3 Maintainer: takagi Status: ready --> <section id="xmlreader.constants"> &reftitle.constants; &extension.constants; http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/rar/reference.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc-ja/reference/rar/reference.xml diff -u phpdoc-ja/reference/rar/reference.xml:1.2 phpdoc-ja/reference/rar/reference.xml:1.3 --- phpdoc-ja/reference/rar/reference.xml:1.2 Sun Sep 4 21:01:56 2005 +++ phpdoc-ja/reference/rar/reference.xml Thu Jul 27 03:31:28 2006 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.3 Maintainer: takagi Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.4 Maintainer: takagi Status: ready --> <!-- Purpose: compression --> <!-- Membership: pecl, external --> @@ -39,8 +39,8 @@ で取得可能です。 </para> <para> - また、以下のコマンドを使用して pear インストーラで Rar 拡張モジュールを - インストールすることができます。<command>pear -v install rar</command> + また、以下のコマンドを使用して PECL インストーラで Rar 拡張モジュールを + インストールすることができます。<command>pecl -v install rar</command> </para> <para> tar.gz パッケージをダウンロードし、Rar を手動でインストールすることも http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/ps/configure.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc-ja/reference/ps/configure.xml diff -u phpdoc-ja/reference/ps/configure.xml:1.1 phpdoc-ja/reference/ps/configure.xml:1.2 --- phpdoc-ja/reference/ps/configure.xml:1.1 Sat Jul 23 04:01:00 2005 +++ phpdoc-ja/reference/ps/configure.xml Thu Jul 27 03:31:28 2006 @@ -1,12 +1,12 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.1 Maintainer: takagi Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.2 Maintainer: takagi Status: ready --> <section id="ps.installation"> &reftitle.install; <para> 簡単なインストール方法: コンソールで以下のコマンドを入力します。 <screen> -$ pear install ps +$ pecl install ps </screen> </para> </section> http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/mbstring/functions/mb-encode-mimeheader.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc-ja/reference/mbstring/functions/mb-encode-mimeheader.xml diff -u phpdoc-ja/reference/mbstring/functions/mb-encode-mimeheader.xml:1.5 phpdoc-ja/reference/mbstring/functions/mb-encode-mimeheader.xml:1.6 --- phpdoc-ja/reference/mbstring/functions/mb-encode-mimeheader.xml:1.5 Thu Aug 11 12:42:02 2005 +++ phpdoc-ja/reference/mbstring/functions/mb-encode-mimeheader.xml Thu Jul 27 03:31:28 2006 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.5 $ --> +<!-- $Revision: 1.6 $ --> <!-- splitted from ./ja/functions/mbstring.xml, last change in rev 1.1 --> -<!-- EN-Revision: 1.6 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.7 Maintainer: hirokawa Status: ready --> <!-- CREDITS: takagi --> <refentry id="function.mb-encode-mimeheader"> <refnamediv> @@ -35,7 +35,7 @@ </para> <para> <parameter>linefeed</parameter> は EOL(行末)のマーカで、 - <function>mb_encode_mime_header</function> が行を折りたたむ + <function>mb_encode_mimeheader</function> が行を折りたたむ (<ulink url="&url.rfc;2822">RFC</ulink> 用語で、 ある一定より長い行を複数行に分割することを言います。 分割する長さは、現在 74 文字に固定されています)際に利用します。 http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/filter/functions/input-get.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc-ja/reference/filter/functions/input-get.xml diff -u phpdoc-ja/reference/filter/functions/input-get.xml:1.2 phpdoc-ja/reference/filter/functions/input-get.xml:1.3 --- phpdoc-ja/reference/filter/functions/input-get.xml:1.2 Mon Mar 13 21:29:44 2006 +++ phpdoc-ja/reference/filter/functions/input-get.xml Thu Jul 27 03:31:28 2006 @@ -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.3 Maintainer: takagi Status: ready --> <!-- Generated by xml_proto.php v2.4. Found in /scripts directory of phpdoc. --> <refentry id="function.input-get"> <refnamediv> @@ -77,8 +77,9 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> - 要求された変数の値、あるいは変数が見つからなかった場合に - &false; を返します。 + 要求された変数の値、フィルタリングに失敗した場合に &false;、あるいは + 変数 <parameter>variable_name</parameter> が設定されていない場合に + &null; を返します。 </para> </refsect1> http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/filter/functions/input-get-args.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc-ja/reference/filter/functions/input-get-args.xml diff -u phpdoc-ja/reference/filter/functions/input-get-args.xml:1.1 phpdoc-ja/reference/filter/functions/input-get-args.xml:1.2 --- phpdoc-ja/reference/filter/functions/input-get-args.xml:1.1 Fri May 12 21:24:47 2006 +++ phpdoc-ja/reference/filter/functions/input-get-args.xml Thu Jul 27 03:31:28 2006 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.1 Maintainer: takagi Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.3 Maintainer: takagi Status: ready --> <refentry id="function.input-get-args"> <refnamediv> <refname>input_get_args</refname> @@ -10,8 +10,8 @@ &reftitle.description; <methodsynopsis> <type>mixed</type><methodname>input_get_args</methodname> - <methodparam><type>array</type><parameter>definition</parameter></methodparam> <methodparam><type>int</type><parameter>type</parameter></methodparam> + <methodparam><type>array</type><parameter>definition</parameter></methodparam> <methodparam choice="opt"><type>array</type><parameter>data</parameter></methodparam> </methodsynopsis> &warn.experimental.func; @@ -25,6 +25,17 @@ <para> <variablelist> <varlistentry> + <term><parameter>type</parameter></term> + <listitem> + <para> + <constant>INPUT_GET</constant>、<constant>INPUT_POST</constant>、 + <constant>INPUT_COOKIE</constant>、<constant>INPUT_SERVER</constant>、 + <constant>INPUT_ENV</constant>、<constant>INPUT_SESSION</constant> + あるいは <constant>INPUT_DATA</constant> のいずれか。 + </para> + </listitem> + </varlistentry> + <varlistentry> <term><parameter>definition</parameter></term> <listitem> <para> @@ -41,17 +52,6 @@ </listitem> </varlistentry> <varlistentry> - <term><parameter>type</parameter></term> - <listitem> - <para> - <constant>INPUT_GET</constant>、<constant>INPUT_POST</constant>、 - <constant>INPUT_COOKIE</constant>、<constant>INPUT_SERVER</constant>、 - <constant>INPUT_ENV</constant>、<constant>INPUT_SESSION</constant> - あるいは <constant>INPUT_DATA</constant> のいずれか。 - </para> - </listitem> - </varlistentry> - <varlistentry> <term><parameter>data</parameter></term> <listitem> <para> @@ -67,7 +67,9 @@ &reftitle.returnvalues; <para> 要求された変数の値を含む配列、 - あるいはエラーが発生した場合に &false; を返します。 + あるいは失敗した場合に &false; を返します。 + 配列の値は、フィルタリングに失敗した場合には &false;、 + 変数が設定されていない場合は &null; となります。 </para> </refsect1> @@ -107,8 +109,8 @@ ); -//$myinputs = input_get_args($args, INPUT_POST); -$myinputs = input_get_args($args, INPUT_DATA, $data); +//$myinputs = input_get_args(INPUT_POST, $args); +$myinputs = input_get_args(INPUT_DATA, $args, $data); var_dump($myinputs); echo "\n"; http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/filter/functions/filter-data.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc-ja/reference/filter/functions/filter-data.xml diff -u phpdoc-ja/reference/filter/functions/filter-data.xml:1.2 phpdoc-ja/reference/filter/functions/filter-data.xml:1.3 --- phpdoc-ja/reference/filter/functions/filter-data.xml:1.2 Wed Apr 19 03:54:41 2006 +++ phpdoc-ja/reference/filter/functions/filter-data.xml Thu Jul 27 03:31:28 2006 @@ -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.3 Maintainer: takagi Status: ready --> <!-- Generated by xml_proto.php v2.4. Found in /scripts directory of phpdoc. --> <refentry id="function.filter-data"> <refnamediv> @@ -67,7 +67,7 @@ &reftitle.returnvalues; <para> フィルタリングされたデータ、あるいは処理に失敗した場合に - &null; を返します。 + &false; を返します。 </para> </refsect1> @@ -88,7 +88,7 @@ <screen> <![CDATA[ string(15) "bob@example.com" -NULL +bool(false) ]]> </screen> </example> http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/filesystem/functions/pathinfo.xml?r1=1.8&r2=1.9&diff_format=u Index: phpdoc-ja/reference/filesystem/functions/pathinfo.xml diff -u phpdoc-ja/reference/filesystem/functions/pathinfo.xml:1.8 phpdoc-ja/reference/filesystem/functions/pathinfo.xml:1.9 --- phpdoc-ja/reference/filesystem/functions/pathinfo.xml:1.8 Thu Jun 15 21:38:04 2006 +++ phpdoc-ja/reference/filesystem/functions/pathinfo.xml Thu Jul 27 03:31:28 2006 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.8 $ --> +<!-- $Revision: 1.9 $ --> <!-- splitted from ./ja/functions/filesystem.xml, last change in rev 1.30 --> -<!-- EN-Revision: 1.10 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.12 Maintainer: hirokawa Status: ready --> <refentry id="function.pathinfo"> <refnamediv> <refname>pathinfo</refname> @@ -25,8 +25,10 @@ どの要素がで返されるか指定することができます。 それは <constant>PATHINFO_DIRNAME</constant>、 - <constant>PATHINFO_BASENAME</constant> と - <constant>PATHINFO_EXTENSION</constant> で構成されます。 + <constant>PATHINFO_BASENAME</constant>、 + <constant>PATHINFO_EXTENSION</constant> と + <constant>PATHINFO_FILENAME</constant> (PHP 5.2.0 以降で使用可能) + で構成されます。 デフォルトではすべての要素が返ります。すべての要素を指定しなかった場合、 この関数は (配列ではなく) 文字列を返します。 </para> @@ -42,7 +44,7 @@ echo $path_parts['dirname'], "\n"; echo $path_parts['basename'], "\n"; echo $path_parts['extension'], "\n"; - +echo $path_parts['filename'], "\n"; // PHP 5.2.0 以降 ?> ]]> </programlisting> @@ -54,6 +56,7 @@ /www/htdocs index.html html +index ]]> </screen> </example> http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/filesystem/constants.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc-ja/reference/filesystem/constants.xml diff -u phpdoc-ja/reference/filesystem/constants.xml:1.2 phpdoc-ja/reference/filesystem/constants.xml:1.3 --- phpdoc-ja/reference/filesystem/constants.xml:1.2 Tue Nov 23 04:45:33 2004 +++ phpdoc-ja/reference/filesystem/constants.xml Thu Jul 27 03:31:29 2006 @@ -1,5 +1,6 @@ <?xml version='1.0' encoding='utf-8'?> -<!-- EN-Revision: 1.2 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.3 Maintainer: hirokawa Status: ready --> <section id="filesystem.constants"> &reftitle.constants; &extension.constants; @@ -105,6 +106,17 @@ </varlistentry> <varlistentry> <term> + <constant>PATHINFO_FILENAME</constant> + (<type>integer</type>) + </term> + <listitem> + <simpara> + PHP 5.2.0 以降。 + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> <constant>FILE_USE_INCLUDE_PATH</constant> (<type>integer</type>) </term> http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/ctype/functions/ctype-alnum.xml?r1=1.6&r2=1.7&diff_format=u Index: phpdoc-ja/reference/ctype/functions/ctype-alnum.xml diff -u phpdoc-ja/reference/ctype/functions/ctype-alnum.xml:1.6 phpdoc-ja/reference/ctype/functions/ctype-alnum.xml:1.7 --- phpdoc-ja/reference/ctype/functions/ctype-alnum.xml:1.6 Sun Jul 31 21:23:59 2005 +++ phpdoc-ja/reference/ctype/functions/ctype-alnum.xml Thu Jul 27 03:31:29 2006 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.7 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.8 Maintainer: hirokawa Status: ready --> <!-- CREDITS: takagi --> <refentry id="function.ctype-alnum"> <refnamediv> @@ -18,7 +18,7 @@ 与えられた文字列 <parameter>text</parameter> のすべての文字が英字または 数字であるかどうかを調べます。標準の <literal>C</literal> ロケールの場合、 文字は <literal>[A-Za-z]</literal> で、この関数は - <literal>preg_match('/^[a-z0-9]*$/i', $text)</literal> と等価です。 + <literal>preg_match('/^[a-z0-9]+$/i', $text)</literal> と等価です。 </para> </refsect1> http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/apache/functions/apache-getenv.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc-ja/reference/apache/functions/apache-getenv.xml diff -u phpdoc-ja/reference/apache/functions/apache-getenv.xml:1.2 phpdoc-ja/reference/apache/functions/apache-getenv.xml:1.3 --- phpdoc-ja/reference/apache/functions/apache-getenv.xml:1.2 Thu Jun 2 16:40:42 2005 +++ phpdoc-ja/reference/apache/functions/apache-getenv.xml Thu Jul 27 03:31:29 2006 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8" ?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.8 Maintainer: shimooka Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.9 Maintainer: shimooka Status: ready --> <refentry id="function.apache-getenv"> <refnamediv> <refname>apache_getenv</refname> @@ -85,7 +85,7 @@ &reftitle.seealso; <para> <simplelist> - <member><function>apache_sentenv</function></member> + <member><function>apache_setenv</function></member> <member><function>getenv</function></member> <member><link linkend="language.variables.superglobals">スーパーグローバル</link></member> </simplelist> http://cvs.php.net/viewvc.cgi/phpdoc-ja/language/oop5/basic.xml?r1=1.7&r2=1.8&diff_format=u Index: phpdoc-ja/language/oop5/basic.xml diff -u phpdoc-ja/language/oop5/basic.xml:1.7 phpdoc-ja/language/oop5/basic.xml:1.8 --- phpdoc-ja/language/oop5/basic.xml:1.7 Wed May 3 02:18:11 2006 +++ phpdoc-ja/language/oop5/basic.xml Thu Jul 27 03:31:29 2006 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.7 $ --> -<!-- EN-Revision: 1.16 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.8 $ --> +<!-- EN-Revision: 1.17 Maintainer: hirokawa Status: ready --> <sect1 id="language.oop5.basic"> <title>クラスの基礎</title> @@ -87,6 +87,37 @@ </programlisting> </example> + <para> + デフォルト値は定数でなければなりません。(たとえば) + 変数、クラスのメンバあるいは関数コールなどは使用できません。 + <example> + <title>クラスのメンバのデフォルト値</title> + <programlisting role="php"> +<![CDATA[ +<?php +class SimpleClass +{ + // 無効な形式のメンバ宣言 + public $var1 = 'hello '.'world'; + public $var2 = <<<EOD +hello world +EOD; + public $var3 = 1+2; + public $var4 = self::myStaticMethod(); + public $var5 = $myVar; + + // 有効な宣言 + public $var6 = myConstant; + public $var7 = self::classConstant; + public $var8 = array(true, false); + + +} +?> +]]> + </programlisting> + </example> + </para> <note> <para> クラスやオブジェクトを扱うための、便利な関数があります。 http://cvs.php.net/viewvc.cgi/phpdoc-ja/language-snippets.ent?r1=1.62&r2=1.63&diff_format=u Index: phpdoc-ja/language-snippets.ent diff -u phpdoc-ja/language-snippets.ent:1.62 phpdoc-ja/language-snippets.ent:1.63 --- phpdoc-ja/language-snippets.ent:1.62 Wed Jul 12 03:09:15 2006 +++ phpdoc-ja/language-snippets.ent Thu Jul 27 03:31:29 2006 @@ -1,5 +1,5 @@ -<!-- $Revision: 1.62 $ --> -<!-- EN-Revision: 1.170 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.63 $ --> +<!-- EN-Revision: 1.171 Maintainer: hirokawa Status: ready --> <!-- Credits: haruki,shimooka,takagi --> <!-- Notes --> @@ -669,3 +669,14 @@ 公開鍵をサーバ上で管理するために使用されます。 公開鍵認証によりリモートシステムで認証を行うには、かわりに <function>ssh2_auth_pubkey_file</function> 関数を使用してください。</simpara></note>'> + +<!-- HTTP --> +<!ENTITY see.http.request.options '<para> + 使用可能なパラメータおよび<link linkend="http.request.options">オプション</link>の一覧は、 + <link linkend="function.http-get"><function>http_get</function></link> を参照ください。 + </para>'> + +<!ENTITY link.http.configuration '<link linkend="http.configuration">INI 設定</link>'> +<!ENTITY link.http.request.options '<link linkend="http.request.options">リクエストのオプション</link>'> +<!ENTITY link.http.request.info '<link linkend="http.request.info">リクエスト/レスポンス の情報</link>'> +<!ENTITY returns.http.response '成功した場合は HTTP レスポンスを文字列で、失敗した場合は FALSE を返します。'>
« previous php.doc.ja (#1585) next »