Home » HTTP » HTTP_WebDAV_Server » Bug #4255
Calling http_status() after printing content
Details
| Submitted | 2005-05-01 12:07 UTC |
|---|---|
| From | rspeed at neonge dot com |
| Assigned | hholzgra |
| Status | Closed |
| Package | HTTP_WebDAV_Server |
| PHP Version | 5.0.3 |
| OS | Mac OS X 10.4 |
| Roadmaps | (Not assigned) |
Comments
[2005-05-01 12:07 UTC] rspeed at neonge dot com
Description:
------------
The http_status method is called from the GET method
wrapper (http_GET) after the file contents have been sent to
the WebDAV client.
Reproduce code:
---------------
Starting around line 880:
header("Content-length: ".strlen($options['data']));
echo $options['data'];
...
$this->http_status("$status");
Expected result:
----------------
All headers should be set before returning data to the
browser.
Actual result:
--------------
The script throws a warning that headers were already sent.