httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 33499] New: - AddOutputFilterByType won't work reliably with PHP
Date Thu, 10 Feb 2005 18:59:30 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=33499>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=33499

           Summary: AddOutputFilterByType won't work reliably with PHP
           Product: Apache httpd-2.0
           Version: 2.0.53
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: P2
         Component: Core
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: ricilake@speedy.com.pe


PHP calls ap_set_content_type for generated content with an explicit content-type header.
It calls it 
once at the beginning of the handler in order to set the content-type to the default (usually
text/html) 
and then calls it again if the php script sends a Content-Type header.

ap_set_content_type attaches filters configured by AddOutputFilterByType when it is called.

Consequently, PHP generated pages will have both the text/html output filters and the output
filters for 
the actual content type added.

As Nick Kew says in response to bug 31226, "AddOutputFilterbyType is known to be broken."
Fixing 
this problem does not appear to me to be easy; I would recommend documenting ap_set_content_type

in include/http_protocol.h to add a warning that ap_set_content_type should not be called
twice for the 
same request.

I'm submitting this bug by way of documentation.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message