php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13219 register_shutdown_function doesn't work
Submitted: 2001-09-09 05:10 UTC Modified: 2001-09-09 06:46 UTC
From: jasperherik at hotmail dot com Assigned:
Status: Not a bug Package: Unknown/Other Function
PHP Version: 4.0.6 OS: Windows 98
Private report: No CVE-ID: None
 [2001-09-09 05:10 UTC] jasperherik at hotmail dot 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)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-09-09 05:14 UTC] sterling@php.net
register_shutdown_function() returns void, this is not a bug
 [2001-09-09 05:21 UTC] jasperherik at hotmail dot com
what should i do to make it work?
 [2001-09-09 06:46 UTC] jeroen@php.net
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.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 15:01:56 2024 UTC