php.net |  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
Votes:1
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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: darren at dcook dot org
New email:
PHP Version: OS:

 

 [2010-02-10 01:58 UTC] darren at dcook dot org
Description:
------------
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().

Thanks!

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



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-03-14 23:33 UTC] kalle@php.net
-Status: Open +Status: Assigned -Assigned To: +Assigned To: pajoye
 [2010-03-14 23:33 UTC] kalle@php.net
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] pajoye@php.net
-Assigned To: pajoye +Assigned To: kalle
 [2010-03-15 11:58 UTC] pajoye@php.net
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] kalle@php.net
-Status: Assigned +Status: Feedback
 [2010-03-15 15:18 UTC] kalle@php.net
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] kalle@php.net
-Status: Feedback +Status: No Feedback
 [2010-10-21 12:32 UTC] kalle@php.net
-Assigned To: kalle +Assigned To:
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sun Dec 08 11:01:24 2019 UTC