diff --git a/appendices/migration.xml b/appendices/migration.xml index d78415a667..cf1b23af5f 100644 --- a/appendices/migration.xml +++ b/appendices/migration.xml @@ -1,5 +1,5 @@ - + Migrating from PHP/FI 2 to PHP 3 @@ -37,6 +37,30 @@ +
+ <literal>old_function</literal> + + The old_function statement allows you to + declare a function using a syntax identical to PHP/FI2 (except you + must replace 'function' with 'old_function'. + + + This is a deprecated feature, and should only be used by the + PHP/FI2->PHP 3 convertor. + + + + Functions declared as old_function cannot be + called from PHP's internal code. Among other things, this means + you can't use them in functions such as + usort, array_walk, and + register_shutdown_function. You can get + around this limitation by writing a wrapper function (in normal + PHP 3 form) to call the old_function. + + +
+
Start/end tags diff --git a/appendices/reserved.xml b/appendices/reserved.xml index 1c9190fb4c..a159c99f43 100755 --- a/appendices/reserved.xml +++ b/appendices/reserved.xml @@ -1,5 +1,5 @@ - + List of Reserved Words @@ -58,7 +58,7 @@ - cfunction + cfunction class @@ -163,7 +163,7 @@ new - old_function + old_function print diff --git a/appendices/tokens.xml b/appendices/tokens.xml index b351bbffce..cab5b538a3 100644 --- a/appendices/tokens.xml +++ b/appendices/tokens.xml @@ -1,5 +1,5 @@ - + List of Parser Tokens @@ -422,7 +422,7 @@ T_OLD_FUNCTION old_function - old_function + old_function T_OPEN_TAG diff --git a/language/functions.xml b/language/functions.xml index 008d2900c5..1435fff45d 100644 --- a/language/functions.xml +++ b/language/functions.xml @@ -1,5 +1,5 @@ - + Functions @@ -371,32 +371,6 @@ $newref =& returns_reference(); - - <literal>old_function</literal> - - - The old_function statement allows you to - declare a function using a syntax identical to PHP/FI2 (except you - must replace 'function' with 'old_function'. - - - This is a deprecated feature, and should only be used by the - PHP/FI2->PHP 3 convertor. - - - - Functions declared as old_function cannot be - called from PHP's internal code. Among other things, this means - you can't use them in functions such as - usort, array_walk, and - register_shutdown_function. You can get - around this limitation by writing a wrapper function (in normal - PHP 3 form) to call the old_function. - - - - - Variable functions