改进start.php环境变量处理 改进hook类方法执行返回值

This commit is contained in:
thinkphp
2016-05-25 14:26:28 +08:00
parent 4ccb4c6bdf
commit 7a9eeba565
3 changed files with 12 additions and 10 deletions

View File

@@ -101,7 +101,7 @@ class Response
$data = $this->output($data);
// 监听response_data
Hook::listen('response_data', $data);
Hook::listen('response_data', $data, $this);
// 发送头部信息
if (!headers_sent() && !empty($this->header)) {