php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #19692 register_shutdown_function documentation unclear about output
Submitted: 2002-10-01 10:04 UTC Modified: 2004-04-16 17:35 UTC
From: asd at suespammers dot org Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: 4.2.3 OS: n/a
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
33 + 2 = ?
Subscribe to this entry?

 
 [2002-10-01 10:04 UTC] asd at suespammers dot org
The register_shutdown_function documentation makes it sound like trying to output to the web browser during a shutdown function is a no-op.

However, it seems that it isn't always. Sometimes the text goes out fine; sometimes it goes out after, e.g., zlib compression, etc.

The documenation should probably be changed to state the behavior of output done by a shutdown function is undefined, and strongly warn against letting it happen.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-06-20 14:29 UTC] dchatenay at hotmail dot com
I don't know how active this bug is. It looks related to bug #10447: when you register a shutdown function, php used to release the connection and execute the shutdown function in the background (thus preventing you from sending any output obviously).
  Now it looks like the execution of the shutdown function will keep the connection alive, and you may output some information.
  This is annoying since it used to work fine until recently, and I can't find out what triggered this change in behaviour.
 [2003-06-20 14:30 UTC] dchatenay at hotmail dot com
Sorry, I meant bug #20447.
 [2004-02-25 09:54 UTC] irchtml@php.net
This a duplicate to #20447, closing this bug but leaving the other open.  Will try to figure out in which cases output may still be sent (perhaps today).
 [2004-04-16 17:35 UTC] sniper@php.net
use 'bogus' status..

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jun 16 17:01:29 2024 UTC