- 论坛徽章:
- 0
|
本帖最后由 joker_buggy 于 2013-05-29 14:28 编辑
报错:
[error] PHP Notice: ob_end_flush(): failed to delete and flush buffer. No buffer to delete or flush in /var/www/html/shindig/src/common/HttpServlet.php on line 81, referer: http://*********
代码:
public function __destruct() {
if (! $this->noHeaders) {
header("Content-Type: $this->contentType" . (! empty($this->charset) ? "; charset={$this->charset}" : ''));
header('Accept-Ranges: bytes');
if ($this->noCache) {
header("Cache-Control: no-cache, must-revalidate", true);
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT", true);
} else {
header('Cache-Control: public,max-age=' . $this->cacheTime, true);
header("Expires: " . gmdate("D, d M Y H:i:s", time() + $this->cacheTime) . " GMT", true);
if (! isset($_SERVER['HTTP_PRAGMA']) || ! strstr(strtolower($_SERVER['HTTP_PRAGMA']), 'no-cache') && (! isset($_SERVE
R['HTTP_CACHE_CONTROL']) || ! strstr(strtolower($_SERVER['HTTP_CACHE_CONTROL']), 'no-cache'))) {
if (isset($_SERVER['HTTP_IF_MODIFIED_SINCE']) && $this->lastModified && ! isset($_SERVER['HTTP_IF_NONE_MATCH'])) {
$if_modified_since = strtotime($_SERVER['HTTP_IF_MODIFIED_SINCE']);
if ($this->lastModified <= $if_modified_since) {
header('Last-Modified: ' . gmdate('D, d M Y H:i:s', $this->lastModified) . ' GMT', true);
header("HTTP/1.1 304 Not Modified", true);
header('Content-Length: 0', true);
ob_end_clean();
die();
}
}
header('Last-Modified: ' . gmdate('D, d M Y H:i:s', ($this->lastModified ? $this->lastModified : time())) . ' GMT',
true);
}
}
}
else {
ob_end_flush(); 《=============================================出错位置的代码,请问这该怎么修改?
}
}
请问该如何修改,本人没搞过php,特来求助 |
|