note 24038 added to function.register-shutdown-function
| From: | flutiakoea at hotmail dot com | Date: | Mon, 05 Aug 2002 03:10:05 +0000 |
| Subject: | note 24038 added to function.register-shutdown-function | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-34281@lists.php.net to get a copy of this message | ||
function aa()
{ ... }
register_shutdown_function( aa() );
It's wrong. Some students asked me what's the problem on their code. And I saw that their
code uses the register_shutdown_function like that. It surely causes some problem when the script is
running.
See the difinition of 'register_shutdown_function()'. The type of first arg. is
'string'.
register_shutdown_function( 'aa' );
This is right.
--
http://www.php.net/manual/en/function.register-shutdown-function.php
http://master.php.net/manage/user-notes.php?action=edit+24038
http://master.php.net/manage/user-notes.php?action=delete+24038
http://master.php.net/manage/user-notes.php?action=reject+24038