#50984 [NEW]: register_shutdown_function on windows?

From: Date: Wed, 10 Feb 2010 01:58:52 +0000
Subject: #50984 [NEW]: register_shutdown_function on windows?
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-3849@lists.php.net to get a copy of this message
From: darren at dcook dot org Operating system: windows PHP version: Irrelevant PHP Bug Type: Documentation problem Bug description: register_shutdown_function on windows? 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 --- -- Edit bug report at http://bugs.php.net/?id=50984&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=50984&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=50984&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=50984&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=50984&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=50984&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=50984&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=50984&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=50984&r=needscript Try newer version: http://bugs.php.net/fix.php?id=50984&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=50984&r=support Expected behavior: http://bugs.php.net/fix.php?id=50984&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=50984&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=50984&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=50984&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50984&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=50984&r=dst IIS Stability: http://bugs.php.net/fix.php?id=50984&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=50984&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=50984&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=50984&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=50984&r=mysqlcfg

« previous php.doc.bugs (#3849) next »