Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP7.0 curl_setopt 设置问题 #413

Closed
hareluya opened this issue May 12, 2016 · 1 comment
Closed

PHP7.0 curl_setopt 设置问题 #413

hareluya opened this issue May 12, 2016 · 1 comment

Comments

@hareluya
Copy link

我用的环境

PHP 版本:7.0
overtrue/wechat 版本: 2.1

问题及现象

使用上传素材接口报错:
ErrorException: curl_setopt(): Disabling safe uploads is no longer supported in /var/www/sites/vendor/overtrue/wechat/src/Wechat/Utils/Http.php:197

报错语句是这个:
version_compare(PHP_VERSION, '5.5', '<') || curl_setopt($this->curl, CURLOPT_SAFE_UPLOAD, false);

似乎7.0不支持这个啦~ 求小超修正

overtrue added a commit that referenced this issue May 12, 2016
@hareluya
Copy link
Author

感谢~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants