| Summary | Accessing /dimp/compose.php generates 'headers already sent in Unknown on line 0' |
| Queue | DIMP |
| Queue Version | 1.1.4 |
| Type | Bug |
| State | Resolved |
| Priority | 1. Low |
| Owners | slusarz (at) horde (dot) org |
| Requester | Valentin.Vidic (at) carnet (dot) hr |
| Created | 05/19/2010 (5715 days ago) |
| Due | |
| Updated | 05/19/2010 (5715 days ago) |
| Assigned | |
| Resolved | 05/19/2010 (5715 days ago) |
| Github Issue Link | |
| Github Pull Request | |
| Milestone | |
| Patch | Yes |
Assigned to Michael Slusarz
State ⇒ Resolved
somewhere in your output chain. This solution just happens to mask
the error message.
However, it is proper to remove this buffer when finished using it for
the limited purpose for which it is needed, so it has been fixed.
Bug: 9048Submitted by: Valentin.Vidic@CARNet.hr
Remove buffer after done using it.
http://cvs.horde.org/diff.php/dimp/lib/Views/Compose.php?rt=horde&r1=1.20.2.13&r2=1.20.2.14&ty=u
Priority ⇒ 1. Low
New Attachment: dimp_compose_ob.diff
Patch ⇒ Yes
Milestone ⇒
Queue ⇒ DIMP
Summary ⇒ Accessing /dimp/compose.php generates 'headers already sent in Unknown on line 0'
Type ⇒ Bug
State ⇒ Unconfirmed
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.