- Fixed several problems with output buffering and HEAD requests (Zeev)

- Fixed HTTP Status code issue with ISAPI module (Zeev)
This commit is contained in:
Zeev Suraski 1999-09-03 02:39:36 +00:00
parent 69fa5199bc
commit 276c876171
3 changed files with 6 additions and 2 deletions

View File

@ -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)

View File

@ -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();

View File

@ -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;