|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #50984 register_shutdown_function on windows?
Submitted: 2010-02-10 01:58 UTC Modified: 2010-10-21 12:32 UTC
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: darren at dcook dot org Assigned:
Status: No Feedback Package: Documentation problem
PHP Version: Irrelevant OS: windows
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: darren at dcook dot org
New email:
PHP Version: OS:


 [2010-02-10 01:58 UTC] darren at dcook dot org
The documentation for register_shutdown_function does not mention any specific behaviour for Windows vs. Linux, or by web server (vs. CLI).
There is a comment (from 2002!!) saying:

Note that register_shutdown_function() does not work under Apache on Windows platforms.....

The same problem appears in the bug database a few times, but seems to get flagged as bogus each time.

If the comment is wrong, and the function definitely works under apache on Windows, can the comment be removed please? If the behaviour is different under Windows can that be mentioned in the Notes section please?

(FWIW I'm seeing it work under PHP 5.2.3 cli on windows, but identical code not work from php-apache on the same machine; but as the documentation is confusing I'm not sure if I should report this as a bug or not, or if it is simply not supposed to work.)

Also, another comment on that page says debug_backtrace and debug_print_backtrace do not work. If so, it would be really useful to have a full list of commands that cannot be used from within a register_shutdown_function().


Reproduce code:
From manual page: function.register-shutdown-function#Notes


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-03-14 23:33 UTC]
-Status: Open +Status: Assigned -Assigned To: +Assigned To: pajoye
 [2010-03-14 23:33 UTC]
Pierre, can you please clarrify this one and close it if its not an issue. If its something that needs to be documented then please re-assign it to me.
 [2010-03-15 11:58 UTC]
-Assigned To: pajoye +Assigned To: kalle
 [2010-03-15 11:58 UTC]
I don't have the time to investigate that now, can you try yourself and come back to m if there is any issue regarding this function on windows?
 [2010-03-15 15:18 UTC]
-Status: Assigned +Status: Feedback
 [2010-03-15 15:18 UTC]
Right, well what exactly isn't working, can you provide a sample code? Have you tried with the latest 5.2 and 5.3 releases?
 [2010-10-21 12:32 UTC]
-Status: Feedback +Status: No Feedback
 [2010-10-21 12:32 UTC]
-Assigned To: kalle +Assigned To:
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Wed May 12 22:01:23 2021 UTC