register_user_func and register_shutdown_func

From: Date: Wed, 15 Dec 2004 07:28:48 +0000
Subject: register_user_func and register_shutdown_func
Groups: php.general 
Request: Send a blank email to php-general+get-204386@lists.php.net to get a copy of this message
Hi all, is there any internal difference between following calls (they occur inside some class)? #1 register_shutdown_function(array($this, 'myfunc')); #2 register_shutdown_function(array(&$this, 'myfunc')); (note the reference operator in #2) Or is parameter "$this" in example #1 forced to be taken as reference internally, which makes both calls basically identical? Thank you for your kind response. Best regards, Bostjan Skufca

« previous php.general (#204386) next »