cvs: phpdoc-ja / language-snippets.ent /appendices userlandnaming.xml /language constants.xml control-structures.xml functions.xml oop5.xml
variables.xml /reference/datetime/functions date.xml /reference/filesystem/functions glob.xml /reference/network/functions setcookie.xml
setrawcookie.xml /reference/session ini.xml /reference/session/functions session-get-cookie-params.xml session-set-cookie-params.xml
/reference/strings/functions str-ireplace.xml str-replace.xml strcasecmp.xml strcmp.xml strcoll.xml stristr.xml strnatcasecmp.xml strnatcmp.xml
strncasecmp.xml strncmp.xml strstr.xml substr.xml /reference/tidy/functions tidy-setopt.xml

From: Date: Fri, 11 Aug 2006 19:59:10 +0000
Subject: cvs: phpdoc-ja / language-snippets.ent /appendices userlandnaming.xml /language constants.xml control-structures.xml functions.xml oop5.xml
variables.xml /reference/datetime/functions date.xml /reference/filesystem/functions glob.xml /reference/network/functions setcookie.xml
setrawcookie.xml /reference/session ini.xml /reference/session/functions session-get-cookie-params.xml session-set-cookie-params.xml
/reference/strings/functions str-ireplace.xml str-replace.xml strcasecmp.xml strcmp.xml strcoll.xml stristr.xml strnatcasecmp.xml strnatcmp.xml
strncasecmp.xml strncmp.xml strstr.xml substr.xml /reference/tidy/functions tidy-setopt.xml
Groups: php.doc.ja 
Request: Send a blank email to doc-ja+get-1594@lists.php.net to get a copy of this message
takagi Fri Aug 11 19:59:10 2006 UTC Added files: /phpdoc-ja/appendices userlandnaming.xml Modified files: /phpdoc-ja/reference/tidy/functions tidy-setopt.xml /phpdoc-ja/reference/strings/functions substr.xml strstr.xml strncmp.xml strncasecmp.xml strnatcmp.xml strnatcasecmp.xml stristr.xml strcoll.xml strcmp.xml strcasecmp.xml str-replace.xml str-ireplace.xml /phpdoc-ja/reference/session/functions session-set-cookie-params.xml session-get-cookie-params.xml /phpdoc-ja/reference/session ini.xml /phpdoc-ja/reference/network/functions setrawcookie.xml setcookie.xml /phpdoc-ja/reference/filesystem/functions glob.xml /phpdoc-ja/reference/datetime/functions date.xml /phpdoc-ja/language variables.xml oop5.xml functions.xml control-structures.xml constants.xml /phpdoc-ja language-snippets.ent Log: sync with en.

http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/tidy/functions/tidy-setopt.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc-ja/reference/tidy/functions/tidy-setopt.xml diff -u phpdoc-ja/reference/tidy/functions/tidy-setopt.xml:1.1 phpdoc-ja/reference/tidy/functions/tidy-setopt.xml:1.2 --- phpdoc-ja/reference/tidy/functions/tidy-setopt.xml:1.1 Sun May 1 14:04:24 2005 +++ phpdoc-ja/reference/tidy/functions/tidy-setopt.xml Fri Aug 11 19:59:09 2006 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8" ?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.5 Maintainer: shimooka Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.6 Maintainer: shimooka Status: ready --> <refentry id="function.tidy-setopt"> <refnamediv> <refname>tidy_setopt</refname> @@ -19,6 +19,9 @@ <function>tidy_setopt</function> は、 指定したオプション <parameter>option</parameter> の値を 新しい値 <parameter>value</parameter> に更新します。 + 各設定オプションの一覧を <ulink + url="&url.tidy.conf;">&url.tidy.conf;</ulink> + でご覧いただけます。 </para> <para> <example> http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/strings/functions/substr.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc-ja/reference/strings/functions/substr.xml diff -u phpdoc-ja/reference/strings/functions/substr.xml:1.5 phpdoc-ja/reference/strings/functions/substr.xml:1.6 --- phpdoc-ja/reference/strings/functions/substr.xml:1.5 Mon Jun 27 15:38:45 2005 +++ phpdoc-ja/reference/strings/functions/substr.xml Fri Aug 11 19:59:09 2006 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.5 $ --> +<!-- $Revision: 1.6 $ --> <!-- splitted from ./ja/functions/strings.xml, last change in rev 1.1 --> -<!-- EN-Revision: 1.11 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.12 Maintainer: hirokawa Status: ready --> <!-- CREDITS: shimooka --> <refentry id="function.substr"> <refnamediv> @@ -98,11 +98,11 @@ </programlisting> </example> <para> - <function>strrchr</function>, - <function>substr_replace</function>, - <function>ereg</function>, - <function>trim</function>, - <function>mb_substr</function>, + <function>strrchr</function>、 + <function>substr_replace</function>、 + <function>preg_match</function>、 + <function>trim</function>、 + <function>mb_substr</function> および <function>wordwrap</function> も参照ください。 </para> http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/strings/functions/strstr.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc-ja/reference/strings/functions/strstr.xml diff -u phpdoc-ja/reference/strings/functions/strstr.xml:1.5 phpdoc-ja/reference/strings/functions/strstr.xml:1.6 --- phpdoc-ja/reference/strings/functions/strstr.xml:1.5 Sun Jun 26 11:59:41 2005 +++ phpdoc-ja/reference/strings/functions/strstr.xml Fri Aug 11 19:59:09 2006 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.5 $ --> +<!-- $Revision: 1.6 $ --> <!-- splitted from ./ja/functions/strings.xml, last change in rev 1.4 --> -<!-- EN-Revision: 1.8 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.9 Maintainer: hirokawa Status: ready --> <!-- CREDITS: shimooka --> <refentry id="function.strstr"> <refnamediv> @@ -64,9 +64,9 @@ <function>strstr</function> は PHP 4.3.0 以降バイナリセーフになりました。 </para> <para> - <function>ereg</function>, <function>preg_match</function>, - <function>stristr</function>, <function>strpos</function>, - <function>strrchr</function>, <function>substr</function> + <function>preg_match</function>、 + <function>stristr</function>、<function>strpos</function>、 + <function>strrchr</function> および <function>substr</function> も参照ください。 </para> </refsect1> http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/strings/functions/strncmp.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc-ja/reference/strings/functions/strncmp.xml diff -u phpdoc-ja/reference/strings/functions/strncmp.xml:1.5 phpdoc-ja/reference/strings/functions/strncmp.xml:1.6 --- phpdoc-ja/reference/strings/functions/strncmp.xml:1.5 Sun Jun 26 11:31:21 2005 +++ phpdoc-ja/reference/strings/functions/strncmp.xml Fri Aug 11 19:59:09 2006 @@ -1,13 +1,13 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.5 $ --> +<!-- $Revision: 1.6 $ --> <!-- splitted from ./ja/functions/strings.xml, last change in rev 1.16 --> -<!-- EN-Revision: 1.4 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.5 Maintainer: hirokawa Status: ready --> <!-- CREDITS: shimooka --> <refentry id="function.strncmp"> <refnamediv> <refname>strncmp</refname> <refpurpose> - 最初のn文字についてバイナリ対応の文字列比較を行う + 最初の n 文字についてバイナリ対応の文字列比較を行う </refpurpose> </refnamediv> <refsect1> @@ -34,10 +34,11 @@ 比較は大文字小文字を区別することに注意してください。 </simpara> <simpara> - <function>ereg</function>, - <function>strcasecmp</function>, <function>substr</function>, - <function>stristr</function>, <function>strcmp</function>, - <function>strstr</function>も参照ください。 + <function>preg_match</function>、 + <function>ereg</function>、 + <function>strcasecmp</function>、<function>substr</function>、 + <function>stristr</function>、<function>strcmp</function> および + <function>strstr</function> も参照ください。 </simpara> </refsect1> </refentry> http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/strings/functions/strncasecmp.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc-ja/reference/strings/functions/strncasecmp.xml diff -u phpdoc-ja/reference/strings/functions/strncasecmp.xml:1.5 phpdoc-ja/reference/strings/functions/strncasecmp.xml:1.6 --- phpdoc-ja/reference/strings/functions/strncasecmp.xml:1.5 Sun Jun 26 11:59:41 2005 +++ phpdoc-ja/reference/strings/functions/strncasecmp.xml Fri Aug 11 19:59:09 2006 @@ -1,14 +1,14 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.5 $ --> +<!-- $Revision: 1.6 $ --> <!-- splitted from ./ja/functions/strings.xml, last change in rev 1.22 --> -<!-- EN-Revision: 1.4 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.5 Maintainer: hirokawa Status: ready --> <!-- CREDITS: shimooka --> <refentry id="function.strncasecmp"> <refnamediv> <refname>strncasecmp</refname> <refpurpose> - バイナリ対応の大文字小文字を区別しない文字列比較を最初のn文字につ - いて行う + バイナリ対応で大文字小文字を区別しない文字列比較を、 + 最初の n 文字について行う </refpurpose> </refnamediv> <refsect1> @@ -33,11 +33,11 @@ 0を返します。 </simpara> <simpara> - <function>ereg</function>, - <function>strcasecmp</function>, - <function>strcmp</function>, - <function>substr</function>, - <function>stristr</function>, + <function>preg_match</function>、 + <function>strcasecmp</function>、 + <function>strcmp</function>、 + <function>substr</function>、 + <function>stristr</function> および <function>strstr</function> も参照ください。 </simpara> http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/strings/functions/strnatcmp.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc-ja/reference/strings/functions/strnatcmp.xml diff -u phpdoc-ja/reference/strings/functions/strnatcmp.xml:1.5 phpdoc-ja/reference/strings/functions/strnatcmp.xml:1.6 --- phpdoc-ja/reference/strings/functions/strnatcmp.xml:1.5 Sun Jun 26 11:59:41 2005 +++ phpdoc-ja/reference/strings/functions/strnatcmp.xml Fri Aug 11 19:59:09 2006 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.5 $ --> +<!-- $Revision: 1.6 $ --> <!-- splitted from ./ja/functions/strings.xml, last change in rev 1.16 --> -<!-- EN-Revision: 1.5 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.6 Maintainer: hirokawa Status: ready --> <!-- CREDITS: shimooka --> <refentry id="function.strnatcmp"> <refnamediv> @@ -76,12 +76,12 @@ この比較は、大文字小文字を区別することに注意してください。 </simpara> <simpara> - <function>ereg</function>, - <function>strcasecmp</function>, <function>substr</function>, - <function>stristr</function>, <function>strcmp</function>, - <function>strncmp</function>, <function>strncasecmp</function>, - <function>strnatcasecmp</function>, <function>strstr</function>, - <function>natsort</function>, <function>natcasesort</function> + <function>preg_match</function>、 + <function>strcasecmp</function>、<function>substr</function>、 + <function>stristr</function>、<function>strcmp</function>、 + <function>strncmp</function>、<function>strncasecmp</function>、 + <function>strnatcasecmp</function>、<function>strstr</function>、 + <function>natsort</function> および <function>natcasesort</function> も参照ください。 </simpara> </refsect1> http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/strings/functions/strnatcasecmp.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc-ja/reference/strings/functions/strnatcasecmp.xml diff -u phpdoc-ja/reference/strings/functions/strnatcasecmp.xml:1.5 phpdoc-ja/reference/strings/functions/strnatcasecmp.xml:1.6 --- phpdoc-ja/reference/strings/functions/strnatcasecmp.xml:1.5 Sun Jun 26 11:59:41 2005 +++ phpdoc-ja/reference/strings/functions/strnatcasecmp.xml Fri Aug 11 19:59:09 2006 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.5 $ --> +<!-- $Revision: 1.6 $ --> <!-- splitted from ./ja/functions/strings.xml, last change in rev 1.16 --> -<!-- EN-Revision: 1.4 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.5 Maintainer: hirokawa Status: ready --> <!-- CREDITS: shimooka --> <refentry id="function.strnatcasecmp"> <refnamediv> @@ -33,14 +33,14 @@ 0 を返します。 </simpara> <simpara> - <function>ereg</function>, - <function>strcasecmp</function>, - <function>substr</function>, - <function>stristr</function>, - <function>strcmp</function>, - <function>strncmp</function>, - <function>strncasecmp</function>, - <function>strnatcmp</function>, + <function>preg_match</function>、 + <function>strcasecmp</function>、 + <function>substr</function>、 + <function>stristr</function>、 + <function>strcmp</function>、 + <function>strncmp</function>、 + <function>strncasecmp</function>、 + <function>strnatcmp</function> および <function>strstr</function> も参照ください。 </simpara> http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/strings/functions/stristr.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc-ja/reference/strings/functions/stristr.xml diff -u phpdoc-ja/reference/strings/functions/stristr.xml:1.5 phpdoc-ja/reference/strings/functions/stristr.xml:1.6 --- phpdoc-ja/reference/strings/functions/stristr.xml:1.5 Sun Jun 26 11:59:41 2005 +++ phpdoc-ja/reference/strings/functions/stristr.xml Fri Aug 11 19:59:09 2006 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.5 $ --> +<!-- $Revision: 1.6 $ --> <!-- splitted from ./ja/functions/strings.xml, last change in rev 1.1 --> -<!-- EN-Revision: 1.9 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.10 Maintainer: hirokawa Status: ready --> <!-- CREDITS: shimooka --> <refentry id="function.stristr"> <refnamediv> @@ -79,10 +79,10 @@ &note.bin-safe; <para> - <function>strstr</function>, - <function>strrchr</function>, - <function>substr</function>, - <function>ereg</function> + <function>strstr</function>、 + <function>strrchr</function>、 + <function>substr</function> および + <function>preg_match</function> も参照ください。 </para> </refsect1> http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/strings/functions/strcoll.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc-ja/reference/strings/functions/strcoll.xml diff -u phpdoc-ja/reference/strings/functions/strcoll.xml:1.5 phpdoc-ja/reference/strings/functions/strcoll.xml:1.6 --- phpdoc-ja/reference/strings/functions/strcoll.xml:1.5 Sun Jun 26 11:59:41 2005 +++ phpdoc-ja/reference/strings/functions/strcoll.xml Fri Aug 11 19:59:09 2006 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.5 $ --> +<!-- $Revision: 1.6 $ --> <!-- splitted from ./ja/functions/strings.xml, last change in rev 1.26 --> -<!-- EN-Revision: 1.3 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.4 Maintainer: hirokawa Status: ready --> <!-- CREDITS: shimooka --> <refentry id="function.strcoll"> <refnamediv> @@ -35,10 +35,10 @@ </para> </note> <simpara> - <function>ereg</function>, <function>strcmp</function>, - <function>strcasecmp</function>, <function>substr</function>, - <function>stristr</function>, <function>strncasecmp</function>, - <function>strncmp</function>, <function>strstr</function>, + <function>preg_match</function>、<function>strcmp</function>、 + <function>strcasecmp</function>、<function>substr</function>、 + <function>stristr</function>、<function>strncasecmp</function>、 + <function>strncmp</function>、<function>strstr</function> および <function>setlocale</function> も参照ください。 </simpara> </refsect1> http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/strings/functions/strcmp.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc-ja/reference/strings/functions/strcmp.xml diff -u phpdoc-ja/reference/strings/functions/strcmp.xml:1.5 phpdoc-ja/reference/strings/functions/strcmp.xml:1.6 --- phpdoc-ja/reference/strings/functions/strcmp.xml:1.5 Mon Jun 27 14:41:48 2005 +++ phpdoc-ja/reference/strings/functions/strcmp.xml Fri Aug 11 19:59:09 2006 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.5 $ --> +<!-- $Revision: 1.6 $ --> <!-- splitted from ./ja/functions/strings.xml, last change in rev 1.4 --> -<!-- EN-Revision: 1.3 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.4 Maintainer: hirokawa Status: ready --> <!-- CREDITS: shimooka --> <refentry id="function.strcmp"> <refnamediv> @@ -25,12 +25,12 @@ この比較は大文字小文字を区別することに注意してください。 </simpara> <simpara> - <function>ereg</function>, - <function>strcasecmp</function>, - <function>substr</function>, - <function>stristr</function>, - <function>strncasecmp</function>, - <function>strncmp</function>, + <function>preg_match</function>、 + <function>strcasecmp</function>、 + <function>substr</function>、 + <function>stristr</function>、 + <function>strncasecmp</function>、 + <function>strncmp</function> および <function>strstr</function> も参照ください。 </simpara> http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/strings/functions/strcasecmp.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc-ja/reference/strings/functions/strcasecmp.xml diff -u phpdoc-ja/reference/strings/functions/strcasecmp.xml:1.5 phpdoc-ja/reference/strings/functions/strcasecmp.xml:1.6 --- phpdoc-ja/reference/strings/functions/strcasecmp.xml:1.5 Sun Jun 26 11:59:41 2005 +++ phpdoc-ja/reference/strings/functions/strcasecmp.xml Fri Aug 11 19:59:09 2006 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.5 $ --> +<!-- $Revision: 1.6 $ --> <!-- splitted from ./ja/functions/strings.xml, last change in rev 1.1 --> -<!-- EN-Revision: 1.5 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.6 Maintainer: hirokawa Status: ready --> <!-- CREDITS: shimooka --> <refentry id="function.strcasecmp"> <refnamediv> @@ -38,11 +38,11 @@ </example> </para> <simpara> - <function>ereg</function>, - <function>strcmp</function>, - <function>substr</function>, - <function>stristr</function>, - <function>strncasecmp</function>, + <function>preg_match</function>、 + <function>strcmp</function>、 + <function>substr</function>、 + <function>stristr</function>、 + <function>strncasecmp</function> および <function>strstr</function> も参照ください。 </simpara> http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/strings/functions/str-replace.xml?r1=1.7&r2=1.8&diff_format=u Index: phpdoc-ja/reference/strings/functions/str-replace.xml diff -u phpdoc-ja/reference/strings/functions/str-replace.xml:1.7 phpdoc-ja/reference/strings/functions/str-replace.xml:1.8 --- phpdoc-ja/reference/strings/functions/str-replace.xml:1.7 Fri Feb 17 03:04:41 2006 +++ phpdoc-ja/reference/strings/functions/str-replace.xml Fri Aug 11 19:59:09 2006 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.7 $ --> -<!-- EN-Revision: 1.18 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.8 $ --> +<!-- EN-Revision: 1.19 Maintainer: hirokawa Status: ready --> <refentry id="function.str-replace"> <refnamediv> <refname>str_replace</refname> @@ -99,10 +99,9 @@ </simpara> </note> <para> - <function>str_ireplace</function>, - <function>substr_replace</function>, - <function>ereg_replace</function>, - <function>preg_replace</function>, + <function>str_ireplace</function>、 + <function>substr_replace</function>、 + <function>preg_replace</function> および <function>strtr</function> も参照ください。 </para> http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/strings/functions/str-ireplace.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc-ja/reference/strings/functions/str-ireplace.xml diff -u phpdoc-ja/reference/strings/functions/str-ireplace.xml:1.1 phpdoc-ja/reference/strings/functions/str-ireplace.xml:1.2 --- phpdoc-ja/reference/strings/functions/str-ireplace.xml:1.1 Mon Oct 17 12:36:56 2005 +++ phpdoc-ja/reference/strings/functions/str-ireplace.xml Fri Aug 11 19:59:09 2006 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.8 Maintainer: takagi Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.9 Maintainer: takagi Status: ready --> <refentry id="function.str-ireplace"> <refnamediv> <refname>str_ireplace</refname> @@ -66,7 +66,6 @@ </note> <para> <function>str_replace</function>、 - <function>ereg_replace</function>、 <function>preg_replace</function> および <function>strtr</function> も参照ください。 </para> http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/session/functions/session-set-cookie-params.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc-ja/reference/session/functions/session-set-cookie-params.xml diff -u phpdoc-ja/reference/session/functions/session-set-cookie-params.xml:1.5 phpdoc-ja/reference/session/functions/session-set-cookie-params.xml:1.6 --- phpdoc-ja/reference/session/functions/session-set-cookie-params.xml:1.5 Mon Jun 20 15:41:29 2005 +++ phpdoc-ja/reference/session/functions/session-set-cookie-params.xml Fri Aug 11 19:59:09 2006 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.4 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.5 Maintainer: hirokawa Status: ready --> <!-- CREDITS: shimooka --> <refentry id="function.session-set-cookie-params"> <refnamediv> @@ -17,6 +17,7 @@ <methodparam choice="opt"><type>string</type><parameter>path</parameter></methodparam> <methodparam choice="opt"><type>string</type><parameter>domain</parameter></methodparam> <methodparam choice="opt"><type>bool</type><parameter>secure</parameter></methodparam> + <methodparam choice="opt"><type>bool</type><parameter>httponly</parameter></methodparam> </methodsynopsis> <para> ファイルphp.iniで定義されたクッキーパラメータを設定します。 @@ -27,16 +28,18 @@ </para> <note> <para> - The <parameter>secure</parameter> 引数は PHP4.0.4で追加されました。 + <parameter>secure</parameter> 引数は PHP 4.0.4 で追加されました。 + また <parameter>httponly</parameter> 引数は PHP 5.2.0 で追加されました。 </para> </note> <para> - <link linkend="ini.session.cookie-lifetime">session.cookie_lifetime</link>, - <link linkend="ini.session.cookie-path">session.cookie_path</link>, - <link linkend="ini.session.cookie-domain">session.cookie_domain</link>, - <link linkend="ini.session.cookie-secure">session.cookie_secure</link>, + <link linkend="ini.session.cookie-lifetime">session.cookie_lifetime</link>、 + <link linkend="ini.session.cookie-path">session.cookie_path</link>、 + <link linkend="ini.session.cookie-domain">session.cookie_domain</link>、 + <link linkend="ini.session.cookie-secure">session.cookie_secure</link>、 + <link linkend="ini.session.cookie-httponly">session.cookie_httponly</link> 設定ディレクティブや - <function>session_get_cookie_params</function>関数も参照してください。 + <function>session_get_cookie_params</function> 関数も参照してください。 </para> </refsect1> </refentry> http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/session/functions/session-get-cookie-params.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc-ja/reference/session/functions/session-get-cookie-params.xml diff -u phpdoc-ja/reference/session/functions/session-get-cookie-params.xml:1.5 phpdoc-ja/reference/session/functions/session-get-cookie-params.xml:1.6 --- phpdoc-ja/reference/session/functions/session-get-cookie-params.xml:1.5 Mon Jun 20 15:41:29 2005 +++ phpdoc-ja/reference/session/functions/session-get-cookie-params.xml Fri Aug 11 19:59:09 2006 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.4 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.5 Maintainer: hirokawa Status: ready --> <!-- CREDITS: shimooka --> <refentry id="function.session-get-cookie-params"> <refnamediv> @@ -37,19 +37,26 @@ </listitem> <listitem> <simpara> - "secure" - クッキーはセキュアな接続でのみ送信されます。 - (この項目は、PHP 4.0.4で追加されました) + "secure" - クッキーはセキュアな接続でのみ送信されます + (この項目は、PHP 4.0.4 で追加されました)。 + </simpara> + </listitem> + <listitem> + <simpara> + "httponly" - クッキーは HTTP を通してのみアクセス可能となります + (この項目は PHP 5.2.0 で追加されました)。 </simpara> </listitem> </itemizedlist> </para> <para> 次の設定情報や関数も参照してください。 - <link linkend="ini.session.cookie-lifetime">session.cookie_lifetime</link>, - <link linkend="ini.session.cookie-path">session.cookie_path</link>, - <link linkend="ini.session.cookie-domain">session.cookie_domain</link>, - <link linkend="ini.session.cookie-secure">session.cookie_secure</link>, - <function>session_set_cookie_params</function>. + <link linkend="ini.session.cookie-lifetime">session.cookie_lifetime</link>、 + <link linkend="ini.session.cookie-path">session.cookie_path</link>、 + <link linkend="ini.session.cookie-domain">session.cookie_domain</link>、 + <link linkend="ini.session.cookie-secure">session.cookie_secure</link>、 + <link linkend="ini.session.cookie-httponly">session.cookie_httponly</link> および + <function>session_set_cookie_params</function>。 </para> </refsect1> </refentry> http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/session/ini.xml?r1=1.15&r2=1.16&diff_format=u Index: phpdoc-ja/reference/session/ini.xml diff -u phpdoc-ja/reference/session/ini.xml:1.15 phpdoc-ja/reference/session/ini.xml:1.16 --- phpdoc-ja/reference/session/ini.xml:1.15 Tue Feb 7 20:03:02 2006 +++ phpdoc-ja/reference/session/ini.xml Fri Aug 11 19:59:09 2006 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.15 $ --> -<!-- EN-Revision: 1.40 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.16 $ --> +<!-- EN-Revision: 1.41 Maintainer: hirokawa Status: ready --> <!-- CREDITS: shimooka,takagi --> <section id="session.configuration"> &reftitle.runtime; @@ -91,6 +91,12 @@ <entry>PHP 4.0.4 から利用可能</entry> </row> <row> + <entry>session.cookie_httponly</entry> + <entry>""</entry> + <entry>PHP_INI_ALL</entry> + <entry>PHP 5.2.0 から使用可能</entry> + </row> + <row> <entry>session.use_cookies</entry> <entry>"1"</entry> <entry>PHP_INI_ALL</entry> @@ -168,16 +174,6 @@ <entry>PHP_INI_ALL</entry> <entry>PHP 4.0.4 から利用可能</entry> </row> - -<!-- Not yet - <row> - <entry>session.encode_sources</entry> - <entry>"globals</entry> - <entry>track"</entry> - <entry></entry> - </row> ---> - </tbody> </tgroup> </table> @@ -516,6 +512,21 @@ </listitem> </varlistentry> + <varlistentry id="ini.session.cookie-httponly"> + <term> + <parameter>session.cookie_httponly</parameter> + <type>boolean</type> + </term> + <listitem> + <simpara> + クッキーに対して、HTTP を通してのみアクセスできるようにします。 + つまり、JavaScript のようなスクリプト言語からはアクセスできなくなるということです。 + この設定を使用すると、XSS 攻撃によって ID を盗まれる危険性を減らせます + (が、すべてのブラウザがこの設定をサポートしているというわけではありません)。 + </simpara> + </listitem> + </varlistentry> + <varlistentry id="ini.session.cache-limiter"> <term> <parameter>session.cache_limiter</parameter> http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/network/functions/setrawcookie.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc-ja/reference/network/functions/setrawcookie.xml diff -u phpdoc-ja/reference/network/functions/setrawcookie.xml:1.1 phpdoc-ja/reference/network/functions/setrawcookie.xml:1.2 --- phpdoc-ja/reference/network/functions/setrawcookie.xml:1.1 Thu Jul 27 03:32:04 2006 +++ phpdoc-ja/reference/network/functions/setrawcookie.xml Fri Aug 11 19:59:09 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.2 Maintainer: takagi Status: ready --> <refentry id="function.setrawcookie"> <refnamediv> <refname>setrawcookie</refname> @@ -16,6 +16,7 @@ <methodparam choice="opt"><type>string</type><parameter>path</parameter></methodparam> <methodparam choice="opt"><type>string</type><parameter>domain</parameter></methodparam> <methodparam choice="opt"><type>bool</type><parameter>secure</parameter></methodparam> + <methodparam choice="opt"><type>bool</type><parameter>httponly</parameter></methodparam> </methodsynopsis> <para> <function>setrawcookie</function> は、 @@ -23,6 +24,12 @@ エンコードされないことを除き、 <function>setcookie</function> と等価です。 </para> + <note> + <para> + パラメータ <parameter>httponly</parameter> は + PHP 5.2.0 で追加されました。 + </para> + </note> <para> <function>header</function>、<function>setcookie</function> および <link linkend="features.cookies">クッキーのセクション</link> http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/network/functions/setcookie.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc-ja/reference/network/functions/setcookie.xml diff -u phpdoc-ja/reference/network/functions/setcookie.xml:1.1 phpdoc-ja/reference/network/functions/setcookie.xml:1.2 --- phpdoc-ja/reference/network/functions/setcookie.xml:1.1 Thu Jul 27 03:32:04 2006 +++ phpdoc-ja/reference/network/functions/setcookie.xml Fri Aug 11 19:59:09 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.2 Maintainer: takagi Status: ready --> <refentry id="function.setcookie"> <refnamediv> <refname>setcookie</refname> @@ -16,6 +16,7 @@ <methodparam choice="opt"><type>string</type><parameter>path</parameter></methodparam> <methodparam choice="opt"><type>string</type><parameter>domain</parameter></methodparam> <methodparam choice="opt"><type>bool</type><parameter>secure</parameter></methodparam> + <methodparam choice="opt"><type>bool</type><parameter>httponly</parameter></methodparam> </methodsynopsis> <para> <function>setcookie</function> は、その他のヘッダ情報と共に @@ -140,7 +141,20 @@ 設定します。デフォルトは &false; です。 </entry> <entry> - <literal>0</literal> または <literal>1</literal> + &true; または &false; + </entry> + </row> + <row> + <entry><parameter>httponly</parameter></entry> + <entry> + &true; を設定すると、HTTP を通してのみクッキーにアクセスできるようになります。 + つまり、JavaScript のようなスクリプト言語からはアクセスできなくなるということです。 + この設定を使用すると、XSS 攻撃によって ID を盗まれる危険性を減らせます + (が、すべてのブラウザがこの設定をサポートしているというわけではありません)。 + PHP 5.2.0 で追加されました。 + </entry> + <entry> + &true; または &false; </entry> </row> </tbody> http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/filesystem/functions/glob.xml?r1=1.6&r2=1.7&diff_format=u Index: phpdoc-ja/reference/filesystem/functions/glob.xml diff -u phpdoc-ja/reference/filesystem/functions/glob.xml:1.6 phpdoc-ja/reference/filesystem/functions/glob.xml:1.7 --- phpdoc-ja/reference/filesystem/functions/glob.xml:1.6 Tue Aug 8 08:44:59 2006 +++ phpdoc-ja/reference/filesystem/functions/glob.xml Fri Aug 11 19:59:09 2006 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.19 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.21 Maintainer: hirokawa Status: ready --> <!-- CREDITS: shimooka --> <refentry id="function.glob"> <refnamediv> @@ -23,7 +23,8 @@ </para> <para> マッチするファイル/ディレクトリを含む配列を返します。 - 失敗すると &false; を返します。 + マッチするファイルがなかった場合には空の配列、 + そして失敗した場合には &false; を返します。 </para> <para> 有効なflag: @@ -71,12 +72,8 @@ <simpara> <constant>GLOB_ERR</constant> - (ディレクトリが読めないなどの) 読み込みエラー時に停止します。デフォルトではエラーは無視されます。 + PHP 5.1.0 で追加されました。 </simpara> - <note> - <simpara> - <constant>GLOB_ERR</constant> は PHP 5.1 で追加されました。 - </simpara> - </note> </listitem> </itemizedlist> </para> @@ -95,9 +92,7 @@ ?> ]]> </programlisting> - <para> - 出力は次の通りです: - </para> + &example.outputs.similar; <screen> <![CDATA[ funclist.txt size 44686 @@ -109,6 +104,11 @@ </para> &note.no-remote; + <note> + <simpara> + この関数が使用できないシステムも存在します (例: 昔の Sun OS など)。 + </simpara> + </note> <para> <function>opendir</function>, http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/datetime/functions/date.xml?r1=1.16&r2=1.17&diff_format=u Index: phpdoc-ja/reference/datetime/functions/date.xml diff -u phpdoc-ja/reference/datetime/functions/date.xml:1.16 phpdoc-ja/reference/datetime/functions/date.xml:1.17 --- phpdoc-ja/reference/datetime/functions/date.xml:1.16 Sat Aug 5 21:48:23 2006 +++ phpdoc-ja/reference/datetime/functions/date.xml Fri Aug 11 19:59:09 2006 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.16 $ --> -<!-- EN-Revision: 1.30 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.17 $ --> +<!-- EN-Revision: 1.31 Maintainer: hirokawa Status: ready --> <!-- CREDITS: shimooka,takagi --> <refentry id="function.date"> <refnamediv> http://cvs.php.net/viewvc.cgi/phpdoc-ja/language/variables.xml?r1=1.28&r2=1.29&diff_format=u Index: phpdoc-ja/language/variables.xml diff -u phpdoc-ja/language/variables.xml:1.28 phpdoc-ja/language/variables.xml:1.29 --- phpdoc-ja/language/variables.xml:1.28 Wed Nov 2 00:00:13 2005 +++ phpdoc-ja/language/variables.xml Fri Aug 11 19:59:09 2006 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.28 $ --> -<!-- EN-Revision: 1.90 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.29 $ --> +<!-- EN-Revision: 1.92 Maintainer: hirokawa Status: ready --> <!-- CREDITS: takagi --> <chapter id="language.variables"> <title>変数</title> @@ -28,6 +28,8 @@ </simpara> </note> + &tip.userlandnaming; + <para> 変数関連の関数に関する情報については、 <link linkend="ref.var">変数関数リファレンス</link> http://cvs.php.net/viewvc.cgi/phpdoc-ja/language/oop5.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc-ja/language/oop5.xml diff -u phpdoc-ja/language/oop5.xml:1.4 phpdoc-ja/language/oop5.xml:1.5 --- phpdoc-ja/language/oop5.xml:1.4 Sun Jan 2 07:23:26 2005 +++ phpdoc-ja/language/oop5.xml Fri Aug 11 19:59:09 2006 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.10 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.12 Maintainer: hirokawa Status: ready --> <chapter id="language.oop5"> <title>クラスとオブジェクト (PHP 5)</title> @@ -11,6 +11,7 @@ PHP 5では、新しいオブジェクトモデルが採用されています。PHPのオブジェクト処理は、 完全に書き直され、より高い性能と高機能を実現しています。 </para> + &tip.userlandnaming; </sect1> &language.oop5.basic; http://cvs.php.net/viewvc.cgi/phpdoc-ja/language/functions.xml?r1=1.23&r2=1.24&diff_format=u Index: phpdoc-ja/language/functions.xml diff -u phpdoc-ja/language/functions.xml:1.23 phpdoc-ja/language/functions.xml:1.24 --- phpdoc-ja/language/functions.xml:1.23 Thu Jan 26 03:42:42 2006 +++ phpdoc-ja/language/functions.xml Fri Aug 11 19:59:09 2006 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.23 $ --> -<!-- EN-Revision: 1.60 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.24 $ --> +<!-- EN-Revision: 1.62 Maintainer: hirokawa Status: ready --> <!-- CREDITS: takagi --> <chapter id="language.functions"> <title>関数</title> @@ -39,6 +39,7 @@ <literal>[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*</literal> となります。 </para> + &tip.userlandnaming; <simpara> PHP 3 では、関数は参照される前に定義されている必要がありました。 PHP 4 以降ではそのような制限はありません。 http://cvs.php.net/viewvc.cgi/phpdoc-ja/language/control-structures.xml?r1=1.49&r2=1.50&diff_format=u Index: phpdoc-ja/language/control-structures.xml diff -u phpdoc-ja/language/control-structures.xml:1.49 phpdoc-ja/language/control-structures.xml:1.50 --- phpdoc-ja/language/control-structures.xml:1.49 Fri Mar 31 03:30:04 2006 +++ phpdoc-ja/language/control-structures.xml Fri Aug 11 19:59:09 2006 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.49 $ --> -<!-- EN-Revision: 1.133 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.50 $ --> +<!-- EN-Revision: 1.134 Maintainer: hirokawa Status: ready --> <!-- CREDITS: takagi --> <chapter id="language.control-structures"> @@ -1379,37 +1379,6 @@ <link linkend="features.remote-files">リモートファイル</link>, <function>fopen</function>, <function>file</function>も参照してください。 </para> - <para> - <function>include</function>と<function>require</function>は特殊な - 言語構造であるため、条件構造内にある場合は命令ブロックとして - 括っておく必要があります。 - </para> - <para> - <example> - <title>include() と 条件ブロック</title> - <programlisting role="php"> -<![CDATA[ -<?php - -// これは誤っており希望した通りには動作しません。 -if ($condition) - include $file; -else - include $other; - - -// これが正解です。 -if ($condition) { - include $file; -} else { - include $other; -} - -?> -]]> - </programlisting> - </example> - </para> <simpara> 値の返し方: 読み込まれたファイル内では、ファイルの実行処理を終了し呼出側の スクリプトに戻るために<function>return</function>文を実行することが可能です。 http://cvs.php.net/viewvc.cgi/phpdoc-ja/language/constants.xml?r1=1.26&r2=1.27&diff_format=u Index: phpdoc-ja/language/constants.xml diff -u phpdoc-ja/language/constants.xml:1.26 phpdoc-ja/language/constants.xml:1.27 --- phpdoc-ja/language/constants.xml:1.26 Thu Jun 15 21:38:04 2006 +++ phpdoc-ja/language/constants.xml Fri Aug 11 19:59:09 2006 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.26 $ --> -<!-- EN-Revision: 1.45 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.27 $ --> +<!-- EN-Revision: 1.47 Maintainer: hirokawa Status: ready --> <!-- CREDITS: takagi --> <chapter id="language.constants"> @@ -20,6 +20,7 @@ アンダースコアが後に続きます。正規表現で示すと次のようになります。 <literal>[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*</literal> </para> + &tip.userlandnaming; <para> <example> <title>有効/無効な定数名の例</title> http://cvs.php.net/viewvc.cgi/phpdoc-ja/language-snippets.ent?r1=1.63&r2=1.64&diff_format=u Index: phpdoc-ja/language-snippets.ent diff -u phpdoc-ja/language-snippets.ent:1.63 phpdoc-ja/language-snippets.ent:1.64 --- phpdoc-ja/language-snippets.ent:1.63 Thu Jul 27 03:31:29 2006 +++ phpdoc-ja/language-snippets.ent Fri Aug 11 19:59:10 2006 @@ -1,5 +1,5 @@ -<!-- $Revision: 1.63 $ --> -<!-- EN-Revision: 1.171 Maintainer: hirokawa Status: ready --> +<!-- $Revision: 1.64 $ --> +<!-- EN-Revision: 1.172 Maintainer: hirokawa Status: ready --> <!-- Credits: haruki,shimooka,takagi --> <!-- Notes --> @@ -104,6 +104,10 @@ を使用してこの関数の出力をキャプチャーし、(例えば)文字列 (<type>string</type>)に保存することが可能です。</simpara></tip>'> +<!ENTITY tip.userlandnaming '<tip><simpara> +<xref linkend="userlandnaming" /> もご覧になるとよいでしょう。</simpara></tip>'> + + <!-- Warnings --> <!ENTITY warn.escapeshell '<warning><para>ユーザが入力したデータをこの関数に http://cvs.php.net/viewvc.cgi/phpdoc-ja/appendices/userlandnaming.xml?view=markup&rev=1.1 Index: phpdoc-ja/appendices/userlandnaming.xml +++ phpdoc-ja/appendices/userlandnaming.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: takagi Status: ready --> <appendix id="userlandnaming"> <title>ユーザレベルでの命名の手引き</title> <para> これは、あなたが書く PHP コード中の識別子によりよい名前をつけるための手引きです。 グローバル名前空間のシンボルを作成するコードでシンボルの名前を決める際には、 以下のガイドラインを考慮することが重要です。これにより、 PHP の将来のバージョンとの衝突を避けることができます。 </para> <section id="userlandnaming.globalnamespace"> <title>グローバル名前空間</title> <para> グローバル名前空間に属する言語構造には、このようなものがあります。 </para> <itemizedlist> <listitem><para>関数</para></listitem> <listitem><para>クラス</para></listitem> <listitem><para>インターフェイス</para></listitem> <listitem><para>定数 (クラス定数以外)</para></listitem> <listitem> <para>関数/メソッド の外部で定義された変数</para> </listitem> </itemizedlist> </section> <section id="userlandnaming.rules"> <title>ルール</title> <para> 以下のリストは、PHP プロジェクトで新たな内部識別子を作成する際に どのような基準で名前を決めているのかを おおまかにまとめたものです。完全な規約は、公式の <ulink url="&url.userlandnaming.cs;">コーディング規約</ulink> を参照ください。 </para> <itemizedlist> <listitem> <para> PHP はトップレベルの名前空間を所有していますが、 きちんとしたわかりやすい名前をつけるようにこころがけ、 衝突が起こらないようにしています。 </para> </listitem> <listitem> <para> 関数名では、単語の間にアンダースコアを使用します。一方、 クラス名の場合は lower bumpy camel rule を使用します (昔からあるクラスや関数の中には、例外もあります)。 </para> </listitem> <listitem> <para> PHP の拡張モジュールのグローバルシンボルには、 その拡張モジュールの名前を先頭につけます (これまでにこの原則を守っていない例が大量にあることに注意しましょう)。 たとえば次のようになります。 </para> <itemizedlist> <listitem><para><function>curl_close</function></para></listitem> <listitem><para><function>mysql_query</function></para></listitem> <listitem><para>PREG_SPLIT_DELIM_CAPTURE</para></listitem> <listitem><para>new DOMDocument()</para></listitem> <listitem> <para> <function>strpos</function> (過去に間違えた例) </para> </listitem> <listitem><para>new SplFileObject()</para></listitem> </itemizedlist> </listitem> <listitem> <para> しかし、イテレータや例外については、単純に最後に "Iterator" および "Exception" を追加するようにします。 たとえば次のようになります。 </para> <itemizedlist> <listitem><para>ArrayIterator</para></listitem> <listitem><para>LogicException</para></listitem> </itemizedlist> </listitem> <listitem> <para> PHP では、__ で始まる名前の関数を特殊な関数として予約済みです。 以下にあげるような文書化されている機能を使用する場合を除き、 __ で始まる関数名は使用しないことを推奨します。 </para> <itemizedlist> <listitem><para><function>__get</function></para></listitem> <listitem><para><function>__autoload</function></para></listitem> </itemizedlist> </listitem> </itemizedlist> </section> <section id="userlandnaming.tips"> <title>Tips</title> <para> 将来もそのまま使用できるようなコードを書くためにお勧めなのは、次の方法です。 グローバル名前空間に属するシンボル名には、 前または後ろに何らかの文字列を追加するようにします。 追加する文字は 3 文字から 4 文字程度のできるだけランダムな文字列にし、 それをアンダースコアで (前または後ろに) 連結します。 他のユーザのコードとの衝突を避けるためにお勧めなのは、次の方法です。 まず、他のプロジェクトでどのような接頭辞 (あるいは接尾辞) が使用されているかを調べます。そして、自分たちが選択した接頭辞 (あるいは接尾辞) を周りに広めるようにします。 これらを満たす例は、次のようになります。 </para> <itemizedlist> <listitem><para>MyPx_someFunc()</para></listitem> <listitem><para>Foo_Date</para></listitem> <listitem><para>$asdf_dbh</para></listitem> </itemizedlist> </section> </appendix> <!-- 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 (#1594) next »