326 Star 1.6K Fork 345

GVPswoole / swoole-src

 / 详情

centos7系统,php7.1版本,swoole_http_response的gzip()方法报错

Done
Opened this issue  
2017-02-20 20:53

只要调用该方法,就会报PHP Fatal error: Uncaught Error: Call to undefined method swoole_http_response::gzip()的错误。

Comments (4)

koolob created 任务

没有zlib库,你需要安装一下,然后重新编译swoole

Rango closed 任务

zlib的php扩展和zlib1g这种系统库都已经安装了。

经测试,同样的环境,swoole 1.8.6版本没问题,1.9.5版本有这个问题。别的版本没有测试。

koolob reopened 任务

使用 php --ri swoole 查看是否有 zlib 支持。

Rango closed 任务

Sign in to comment

Status
Assignees
Milestones
Pull Requests
Successfully merging a pull request will close this issue.
Branches
Planed to start   -   Planed to end
-
Top level
Priority
参与者(2)
C
1
https://gitee.com/swoole/swoole.git
git@gitee.com:swoole/swoole.git
swoole
swoole
swoole-src

Search

344bd9b3 5694891 D2dac590 5694891