ID:               22713
 Updated by:       [EMAIL PROTECTED]
 Reported By:      public at asd-group dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         HTTP related
 Operating System: Windows XP
 PHP Version:      4.3.1
 New Comment:

Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.



Previous Comments:
------------------------------------------------------------------------

[2003-03-14 15:21:25] public at asd-group dot com

I'm using output buffering with a callback specified in ob_start. I'm
also using the second parameter of value 2 (callback gets called each
time output occurs in the application, rather than just once when the
whole output buffer is flushed).

My callback always returns an empty string, telling PHP to ignore the
output, however as soon as this happens (ie. first 'echo' or 'print'
statement in application) headers_sent starts to return true.

However the HTTP headers (and terminating blank line) cant have been
sent because my own calls to header() later on (eg. to set cookies)
still work. 

Also, due to this, any code which expects output buffering to be on,
and which checks headers_sent() before sending its own headers (after
doing HTML output) will break using output buffering this way. 
 


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=22713&edit=1

Reply via email to