diff options
| author | Zeev Suraski <zeev@php.net> | 1999-09-03 02:39:36 +0000 |
|---|---|---|
| committer | Zeev Suraski <zeev@php.net> | 1999-09-03 02:39:36 +0000 |
| commit | 276c876171161a196ed97c6d1fa37b6880da9315 (patch) | |
| tree | d223d116e0ccfd6c2b3bc953c934a57ff7a262f6 | |
| parent | 69fa5199bc3b942531a1d2685a29d8acb150e688 (diff) | |
| download | php-git-276c876171161a196ed97c6d1fa37b6880da9315.tar.gz | |
- Fixed several problems with output buffering and HEAD requests (Zeev)
- Fixed HTTP Status code issue with ISAPI module (Zeev)
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rw-r--r-- | main/main.c | 2 | ||||
| -rw-r--r-- | output.c | 2 |
3 files changed, 6 insertions, 2 deletions
@@ -2,6 +2,10 @@ PHP 4.0 CHANGE LOG ChangeLog ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| ?? ?? 1999, Version 4.0 Beta 3 +- Fixed several problems with output buffering and HEAD requests (Zeev) +- Fixed HTTP Status code issue with ISAPI module (Zeev) +- Fixed a problem that prevented $GLOBALS from working properly (Zeev, Zend + library) - Fixed the a problem in the resource reference counting mechanism, that caused resources to be freed much later than they were supposed to (Zeev, Zend library) diff --git a/main/main.c b/main/main.c index 3cc34ddb12..ac95c88a13 100644 --- a/main/main.c +++ b/main/main.c @@ -732,7 +732,7 @@ void php_request_shutdown(void *dummy) SLS_FETCH(); sapi_send_headers(); - zend_end_ob_buffering(1); + zend_end_ob_buffering(SG(request_info).headers_only?0:1); php3_call_shutdown_functions(); @@ -70,7 +70,7 @@ void zend_end_ob_buffering(int send_buffer) if (!ob_buffer) { return; } - if (SG(headers_sent)) { + if (SG(headers_sent) && !SG(request_info).headers_only) { zend_body_write = zend_ub_body_write_no_header; } else { zend_body_write = zend_ub_body_write; |
