1
0
mirror of https://github.com/php/php-src.git synced 2026-04-25 08:58:28 +02:00
This commit is contained in:
Zeev Suraski
2002-09-23 14:18:42 +00:00
parent ff12826fc1
commit 85f4abfdac
+6
View File
@@ -120,6 +120,12 @@ PHPAPI int php_start_ob_buffer(zval *output_handler, uint chunk_size, zend_bool
uint initial_size, block_size;
if (OG(ob_lock)) {
if (SG(headers_sent) && !SG(request_info).headers_only) {
OG(php_body_write) = php_ub_body_write_no_header;
} else {
OG(php_body_write) = php_ub_body_write;
}
OG(ob_nesting_level) = 0;
php_error_docref("ref.outcontrol" TSRMLS_CC, E_ERROR, "Cannot use output buffering in output buffering display handlers");
return FAILURE;
}