com doc/ja: Remove incorrect note about autoloading in interactive CLI: features/commandline.xml language/oop5/autoload.xml
[email protected] (Yoshinari Takaoka) Fri, 12 Feb 2021 04:10:43 +0000
| Newsgroups | php.doc.ja |
|---|---|
| Message-ID | <[email protected]> |
Commit: 47323a4e843182bdfb81c786ffab99fdc6ffa4bb Author: Yoshinari Takaoka <[email protected]> Fri, 12 Feb 2021 13:10:43 +0900 Parents: 6f970f62f13560943cd823092e3364b85930ca24 Branches: master Link: http://git.php.net/?p=doc/ja.git;a=commitdiff;h=47323a4e843182bdfb81c786ffab99fdc6ffa4bb Log: Remove incorrect note about autoloading in interactive CLI This was apparently added in response to a bug report against PHP 5.2 [https://bugs.php.net/bug.php?id=40775]. Testing suggests the limitation was removed at least as long ago as 5.6, and probably earlier. Co-authored-by: Christoph M. Becker <[email protected]> Closes-GH444. Changed paths: M features/commandline.xml M language/oop5/autoload.xml Diff: diff --git a/features/commandline.xml b/features/commandline.xml index 79bdb334c4..1bfcdc1c13 100644 --- a/features/commandline.xml +++ b/features/commandline.xml @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> -<!-- EN-Revision: 86e6094e86b84a51d00ab217ac50ce8dde33d82a Maintainer: takagi Status: ready --> +<!-- EN-Revision: 99b8716337e2c27b6addf7e184b8ac7a50bb38b0 Maintainer: takagi Status: ready --> <!-- CREDITS: hirokawa,shimooka,mumumu --> <chapter xml:id="features.commandline" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>PHP をコマンドラインから使用する</title> @@ -1630,13 +1630,6 @@ php > 定義されていなければなりません。 </para> </note> - - <note> - <para> - <link linkend="language.oop5.autoload">オートローディング</link> - は、PHP を &cli; の対話モードで実行している場合は使用できません。 - </para> - </note> </section> <!--}}}--> diff --git a/language/oop5/autoload.xml b/language/oop5/autoload.xml index ca3bd24a95..feda2ea2ad 100644 --- a/language/oop5/autoload.xml +++ b/language/oop5/autoload.xml @@ -1,6 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> -<!-- EN-Revision: a9edd62d087ab1eb6292c795b7256e14ff9f1234 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 99b8716337e2c27b6addf7e184b8ac7a50bb38b0 Maintainer: hirokawa Status: ready --> +<!-- Credits: mumumu --> <sect1 xml:id="language.oop5.autoload" xmlns="http://docbook.org/ns/docbook"> <title>クラスのオートローディング</title> @@ -29,13 +30,6 @@ </tip> <note> <para> - オートローディングは、PHP を CLI - <link linkend="features.commandline">対話モード</link> - で実行している場合は使用できません。 - </para> - </note> - <note> - <para> クラス名をたとえば <function>call_user_func</function> などで使用する場合、 <literal>../</literal> のような危険な文字が含まれることもあり得ます。 このような関数にはユーザーの入力を渡さないことをおすすめします。