cvs: phpdoc /en/appendices migration.xml reserved.xml tokens.xml /en/language functions.xml
| From: | Philip Olson | Date: | Sat, 17 May 2003 03:37:43 +0000 |
| Subject: | cvs: phpdoc /en/appendices migration.xml reserved.xml tokens.xml /en/language functions.xml | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969353557@lists.php.net to get a copy of this message | ||
philip Fri May 16 23:37:43 2003 EDT
Modified files:
/phpdoc/en/language functions.xml
/phpdoc/en/appendices migration.xml reserved.xml tokens.xml
Log:
Moved the old old_function information to the php2->php3 migration appendix.
Index: phpdoc/en/language/functions.xml
diff -u phpdoc/en/language/functions.xml:1.34 phpdoc/en/language/functions.xml:1.35
--- phpdoc/en/language/functions.xml:1.34 Tue Apr 1 18:42:39 2003
+++ phpdoc/en/language/functions.xml Fri May 16 23:37:43 2003
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.34 $ -->
+<!-- $Revision: 1.35 $ -->
<chapter id="functions">
<title>Functions</title>
@@ -371,32 +371,6 @@
</simpara>
</sect1>
- <sect1 id="functions.old-syntax">
- <title><literal>old_function</literal></title>
-
- <simpara>
- The <literal>old_function</literal> statement allows you to
- declare a function using a syntax identical to PHP/FI2 (except you
- must replace 'function' with 'old_function'.
- </simpara>
- <simpara>
- This is a deprecated feature, and should only be used by the
- PHP/FI2->PHP 3 convertor.
- </simpara>
- <warning>
- <para>
- Functions declared as <literal>old_function</literal> cannot be
- called from PHP's internal code. Among other things, this means
- you can't use them in functions such as
- <function>usort</function>, <function>array_walk</function>, and
- <function>register_shutdown_function</function>. You can get
- around this limitation by writing a wrapper function (in normal
- PHP 3 form) to call the <literal>old_function</literal>.
- </para>
- </warning>
-
- </sect1>
-
<sect1 id="functions.variable-functions">
<title>Variable functions</title>
Index: phpdoc/en/appendices/migration.xml
diff -u phpdoc/en/appendices/migration.xml:1.22 phpdoc/en/appendices/migration.xml:1.23
--- phpdoc/en/appendices/migration.xml:1.22 Wed Jan 8 22:35:16 2003
+++ phpdoc/en/appendices/migration.xml Fri May 16 23:37:43 2003
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.22 $ -->
+<!-- $Revision: 1.23 $ -->
<appendix id="migration">
<title>Migrating from PHP/FI 2 to PHP 3</title>
@@ -37,6 +37,30 @@
</simpara>
</section>
+ <section id="migration.old-function">
+ <title><literal>old_function</literal></title>
+ <simpara>
+ The <literal>old_function</literal> statement allows you to
+ declare a function using a syntax identical to PHP/FI2 (except you
+ must replace 'function' with 'old_function'.
+ </simpara>
+ <simpara>
+ This is a deprecated feature, and should only be used by the
+ PHP/FI2->PHP 3 convertor.
+ </simpara>
+ <warning>
+ <para>
+ Functions declared as <literal>old_function</literal> cannot be
+ called from PHP's internal code. Among other things, this means
+ you can't use them in functions such as
+ <function>usort</function>, <function>array_walk</function>, and
+ <function>register_shutdown_function</function>. You can get
+ around this limitation by writing a wrapper function (in normal
+ PHP 3 form) to call the <literal>old_function</literal>.
+ </para>
+ </warning>
+ </section>
+
<section id="migration.startendtags">
<title>Start/end tags</title>
Index: phpdoc/en/appendices/reserved.xml
diff -u phpdoc/en/appendices/reserved.xml:1.30 phpdoc/en/appendices/reserved.xml:1.31
--- phpdoc/en/appendices/reserved.xml:1.30 Wed May 7 18:46:02 2003
+++ phpdoc/en/appendices/reserved.xml Fri May 16 23:37:43 2003
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.30 $ -->
+<!-- $Revision: 1.31 $ -->
<appendix id="reserved">
<title>List of Reserved Words</title>
@@ -58,7 +58,7 @@
</row>
<row>
<entry>
- <link linkend="functions.old-syntax">cfunction</link>
+ <link linkend="migration.old-function">cfunction</link>
</entry>
<entry>
<link linkend="keyword.class">class</link>
@@ -163,7 +163,7 @@
<link linkend="keyword.class">new</link>
</entry>
<entry>
- <link linkend="functions.old-syntax">old_function</link>
+ <link linkend="migration.old-function">old_function</link>
</entry>
<entry>
<function>print</function>
Index: phpdoc/en/appendices/tokens.xml
diff -u phpdoc/en/appendices/tokens.xml:1.9 phpdoc/en/appendices/tokens.xml:1.10
--- phpdoc/en/appendices/tokens.xml:1.9 Wed Nov 20 08:11:20 2002
+++ phpdoc/en/appendices/tokens.xml Fri May 16 23:37:43 2003
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.9 $ -->
+<!-- $Revision: 1.10 $ -->
<appendix id="tokens">
<title>List of Parser Tokens</title>
@@ -422,7 +422,7 @@
<row>
<entry>T_OLD_FUNCTION</entry>
<entry>old_function</entry>
- <entry><link
linkend="functions.old-syntax">old_function</link></entry>
+ <entry><link
linkend="migration.old-function">old_function</link></entry>
</row>
<row>
<entry>T_OPEN_TAG</entry>