note 24038 deleted from function.register-shutdown-function by dams

From: Date: Mon, 05 Aug 2002 10:19:23 +0000
Subject: note 24038 deleted from function.register-shutdown-function by dams
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-34288@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.

« previous php.notes (#34288) next »