[Tickets #7851] Re: "Headers already sent" caused by usage of flush()
bugs at horde.org
bugs at horde.org
Wed May 19 13:59:35 UTC 2010
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://bugs.horde.org/ticket/7851
------------------------------------------------------------------------------
Ticket | 7851
Updated By | Valentin.Vidic at CARNet.hr
Summary | "Headers already sent" caused by usage of flush()
Queue | DIMP
Version | 1.1.1
Type | Bug
State | No Feedback
Priority | 2. Medium
Milestone |
Patch |
Owners |
+New Attachment | dimp_flush.diff
------------------------------------------------------------------------------
Valentin.Vidic at CARNet.hr (2010-05-19 09:59) wrote:
I'm also seeing a lot of 'headers already sent in Unknown on line 0'
in apache error logs. However the manual for flush says:
http://php.net/manual/en/function.flush.php
flush() may not be able to override the buffering scheme of your web
server and it has no effect on any client-side buffering in the
browser. It also doesn't affect PHP's userspace output buffering
mechanism. This means you will have to call both ob_flush() and
flush() to flush the ob output buffers if you are using those.
And if I add an ob_flush() call before flush() the error message goes
away. Patch is attached.
More information about the bugs
mailing list