CVS update: php3/doc/chapters
| From: | cslawi | Date: | Mon, 07 Sep 1998 11:58:13 +0000 |
| Subject: | CVS update: php3/doc/chapters | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-861@lists.php.net to get a copy of this message | ||
Date: Monday September 7, 1998 @ 7:58
Author: cslawi
Update of /repository/php3/doc/chapters
In directory asf:/u2/tmp/cvs-serv14520/chapters
Modified Files:
lang-const.sgml
Log Message:
Added register_shutdown_function; moved leak() into alphabetic order
Index: php3/doc/chapters/lang-const.sgml
diff -c php3/doc/chapters/lang-const.sgml:1.22 php3/doc/chapters/lang-const.sgml:1.23
*** php3/doc/chapters/lang-const.sgml:1.22 Sun Aug 9 07:40:16 1998
--- php3/doc/chapters/lang-const.sgml Mon Sep 7 07:58:13 1998
***************
*** 773,781 ****
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'.
! <para>
This is a deprecated feature, and should only be used by the
PHP/FI2->PHP3 convertor.
</sect1>
<sect1 id="keyword.class">
--- 773,789 ----
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'.
! <simpara>
This is a deprecated feature, and should only be used by the
PHP/FI2->PHP3 convertor.
+ <simpara>
+ 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 <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
+ PHP3 form) to call the OLD_FUNCTION.
</sect1>
<sect1 id="keyword.class">
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net