PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » HTTP » HTTP_WebDAV_Server » Bug #4255

Calling http_status() after printing content

Details

Submitted2005-05-01 12:07 UTC
Fromrspeed at neonge dot com
Assignedhholzgra
StatusClosed
PackageHTTP_WebDAV_Server
PHP Version5.0.3
OSMac 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.