Bug #13219 Updated: register_shutdown_function doesn't work

From: Date: Sun, 09 Sep 2001 10:46:19 +0000
Subject: Bug #13219 Updated: register_shutdown_function doesn't work
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-65553@lists.php.net to get a copy of this message
ID: 13219 Updated by: jeroen Reported By: jasperherik@hotmail.com Status: Bogus Bug Type: Unknown/Other Function Operating System: Windows 98 PHP Version: 4.0.6 New Comment: end_func isn't called until the script ends, i.e. you won't see the output anymore since the page already has been sent to the browser. That's in the manual by the way. Previous Comments: ------------------------------------------------------------------------ [2001-09-09 05:21:27] jasperherik@hotmail.com what should i do to make it work? ------------------------------------------------------------------------ [2001-09-09 05:14:00] sterling@php.net register_shutdown_function() returns void, this is not a bug ------------------------------------------------------------------------ [2001-09-09 05:10:48] jasperherik@hotmail.com I've got php4.06, Build Date Jun 22 2001, and when i try to run the following script: <? if (!register_shutdown_function("end_func")) echo("register_shutdown_function doesn't work..."); function end_func() { echo("This is the end of the script"); } ?> it outputs register_shutdown_function doesn't work... When i had an older version of PHP (i think it was three) i worked perfectly, but now that i've upgraded, the very same script doesn't work anymore... i have phpdev4 as server(http://www.firepages.com.au/phpdev4.htm) ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=13219&edit=1

« previous php.dev (#65553) next »