[Tickets #9048] Accessing /dimp/compose.php generates 'headers already sent in Unknown on line 0'

bugs at horde.org bugs at horde.org
Wed May 19 14:52:18 UTC 2010


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/9048
------------------------------------------------------------------------------
  Ticket             | 9048
  Created By         | Valentin.Vidic at CARNet.hr
  Summary            | Accessing /dimp/compose.php generates 'headers already
                     | sent in Unknown on line 0'
  Queue              | DIMP
  Version            | 1.1.4
  Type               | Bug
  State              | Unconfirmed
  Priority           | 1. Low
  Milestone          |
  Patch              | 1
  Owners             |
+New Attachment     | dimp_compose_ob.diff
------------------------------------------------------------------------------


Valentin.Vidic at CARNet.hr (2010-05-19 10:52) wrote:

It seems this is a problem with output buffering. ob_start in  
dimp/lib/Views/Compose.php opens a new output buffer on the stack but  
then calls ob_clean instead of ob_end_clean to destroy the temporary  
buffer. From the ob_start manual:

Output buffers are stackable, that is, you may call ob_start() while  
another ob_start() is active. Just make sure that you call  
ob_end_flush()  the appropriate number of times. If multiple output  
callback functions are active, output is being filtered sequentially  
through each of them in nesting order.






More information about the bugs mailing list