svn: /phpdoc/ja/trunk/reference/funchand/functions/ func-get-arg.xml func-get-args.xml func-num-args.xml
| From: | TAKAGI Masahiro | Date: | Sun, 23 Aug 2009 00:28:06 +0000 |
| Subject: | svn: /phpdoc/ja/trunk/reference/funchand/functions/ func-get-arg.xml func-get-args.xml func-num-args.xml | ||
| Groups: | php.doc.ja | ||
| Request: | Send a blank email to doc-ja+get-2587@lists.php.net to get a copy of this message | ||
takagi Sun, 23 Aug 2009 00:28:06 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=287586
Log:
sync with en.
Changed paths:
U phpdoc/ja/trunk/reference/funchand/functions/func-get-arg.xml
U phpdoc/ja/trunk/reference/funchand/functions/func-get-args.xml
U phpdoc/ja/trunk/reference/funchand/functions/func-num-args.xml
Modified: phpdoc/ja/trunk/reference/funchand/functions/func-get-arg.xml
===================================================================
--- phpdoc/ja/trunk/reference/funchand/functions/func-get-arg.xml 2009-08-23 00:25:20 UTC (rev
287585)
+++ phpdoc/ja/trunk/reference/funchand/functions/func-get-arg.xml 2009-08-23 00:28:06 UTC (rev
287586)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 283811 Maintainer: hirokawa Status: ready -->
+<!-- EN-Revision: 287566 Maintainer: hirokawa Status: ready -->
<!-- CREDITS: takagi -->
<refentry xml:id="function.func-get-arg" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
@@ -66,6 +66,15 @@
この関数はパラメータリスト内で使用できるようになりました。
</entry>
</row>
+ <row>
+ <entry>5.3.0</entry>
+ <entry>
+ ある関数内で <function>include</function> や
+ <function>require</function>
を使って別のファイルを読み込んでいるときに
+ 別のファイル側からこの関数をコールすると、警告を発生して
+ &false; を返すようになりました。
+ </entry>
+ </row>
</tbody>
</tgroup>
</informaltable>
@@ -103,6 +112,49 @@
</programlisting>
</example>
</para>
+ <para>
+ <example>
+ <title><function>func_get_arg</function> の PHP 5.3
前後の例</title>
+ <programlisting role="php">
+<![CDATA[
+test.php
+<?php
+function foo() {
+ include './fga.inc';
+}
+
+foo('First arg', 'Second arg');
+?>
+
+fga.php
+<?php
+
+$arg = func_get_arg1(1);
+var_export($arg);
+
+?>
+]]>
+ </programlisting>
+ <para>
+ PHP 5.3 より前のバージョンでの出力は、このようになります。
+ </para>
+ <screen>
+<![CDATA[
+'Second arg'
+]]>
+ </screen>
+ <para>
+ PHP 5.3 以降のバージョンでの出力は、このようになります。
+ </para>
+ <screen>
+<![CDATA[
+Warning: func_get_arg(): Called from the global scope - no function
+context in /home/torben/Desktop/code/ml/fga.inc on line 3
+false
+]]>
+ </screen>
+ </example>
+ </para>
</refsect1>
<refsect1 role="notes">
Modified: phpdoc/ja/trunk/reference/funchand/functions/func-get-args.xml
===================================================================
--- phpdoc/ja/trunk/reference/funchand/functions/func-get-args.xml 2009-08-23 00:25:20 UTC (rev
287585)
+++ phpdoc/ja/trunk/reference/funchand/functions/func-get-args.xml 2009-08-23 00:28:06 UTC (rev
287586)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 283811 Maintainer: hirokawa Status: ready -->
+<!-- EN-Revision: 287566 Maintainer: hirokawa Status: ready -->
<!-- CREDITS: takagi -->
<refentry xml:id="function.func-get-args" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
@@ -50,6 +50,15 @@
この関数はパラメータリスト内で使用できるようになりました。
</entry>
</row>
+ <row>
+ <entry>5.3.0</entry>
+ <entry>
+ ある関数内で <function>include</function> や
+ <function>require</function>
を使って別のファイルを読み込んでいるときに
+ 別のファイル側からこの関数をコールすると、警告を発生して
+ &false; を返すようになりました。
+ </entry>
+ </row>
</tbody>
</tgroup>
</informaltable>
@@ -100,6 +109,52 @@
</screen>
</example>
</para>
+ <para>
+ <example>
+ <title><function>func_get_args</function> の PHP 5.3
前後の例</title>
+ <programlisting role="php">
+<![CDATA[
+test.php
+<?php
+function foo() {
+ include './fga.inc';
+}
+
+foo('First arg', 'Second arg');
+?>
+
+fga.php
+<?php
+
+$args = func_get_args();
+var_export($args);
+
+?>
+]]>
+ </programlisting>
+ <para>
+ PHP 5.3 より前のバージョンでの出力は、このようになります。
+ </para>
+ <screen>
+<![CDATA[
+array (
+ 0 => 'First arg',
+ 1 => 'Second arg',
+)
+]]>
+ </screen>
+ <para>
+ PHP 5.3 以降のバージョンでの出力は、このようになります。
+ </para>
+ <screen>
+<![CDATA[
+Warning: func_get_args(): Called from the global scope - no function
+context in /home/torben/Desktop/code/ml/fga.inc on line 3
+false
+]]>
+ </screen>
+ </example>
+ </para>
</refsect1>
<refsect1 role="notes">
Modified: phpdoc/ja/trunk/reference/funchand/functions/func-num-args.xml
===================================================================
--- phpdoc/ja/trunk/reference/funchand/functions/func-num-args.xml 2009-08-23 00:25:20 UTC (rev
287585)
+++ phpdoc/ja/trunk/reference/funchand/functions/func-num-args.xml 2009-08-23 00:28:06 UTC (rev
287586)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 283811 Maintainer: hirokawa Status: ready -->
+<!-- EN-Revision: 287585 Maintainer: hirokawa Status: ready -->
<!-- CREDITS: takagi -->
<refentry xml:id="function.func-num-args" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
@@ -49,6 +49,15 @@
この関数はパラメータリスト内で使用できるようになりました。
</entry>
</row>
+ <row>
+ <entry>5.3.0</entry>
+ <entry>
+ ある関数内で <function>include</function> や
+ <function>require</function>
を使って別のファイルを読み込んでいるときに
+ 別のファイル側からこの関数をコールすると、警告を発生して
+ -1 を返すようになりました。
+ </entry>
+ </row>
</tbody>
</tgroup>
</informaltable>
@@ -88,6 +97,49 @@
</screen>
</example>
</para>
+ <para>
+ <example>
+ <title><function>func_num_args</function> の PHP 5.3
前後の例</title>
+ <programlisting role="php">
+<![CDATA[
+test.php
+<?php
+function foo() {
+ include './fga.inc';
+}
+
+foo('First arg', 'Second arg');
+?>
+
+fga.php
+<?php
+
+$num_args = func_num_args();
+var_export($num_args);
+
+?>
+]]>
+ </programlisting>
+ <para>
+ PHP 5.3 より前のバージョンでの出力は、このようになります。
+ </para>
+ <screen>
+<![CDATA[
+2
+]]>
+ </screen>
+ <para>
+ PHP 5.3 以降のバージョンでの出力は、このようになります。
+ </para>
+ <screen>
+<![CDATA[
+Warning: func_num_args(): Called from the global scope - no function
+context in /home/torben/Desktop/code/ml/fga.inc on line 3
+-1
+]]>
+ </screen>
+ </example>
+ </para>
</refsect1>
<refsect1 role="notes">