-
Notifications
You must be signed in to change notification settings - Fork 346
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
Class 'OSS\OSSClient' not found #122
Comments
如果你不是通过composer下载的SDK,把autoload.php里面的路径打印出来,会发现不对,更改下就好了。 |
是composer装的 |
兄弟,我终于找到解决办法了,那是因为!!!!! /vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php 里的类名是 OssClient |
window不区分大小写,但是linux区分大小写 |
you may use $ossClient = new OSS\OssClient to new it his namespace is OSS; |
在windows环境下,使用compser安装类加载一切正常,将其移植到linux环境中(函数计算平台),就出现了Class 'OSS\OSSClient' not found的情况,手动include oss-sdk-php下面的autoload.php也是不行,必须要把/vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php手动引入进来才可以,不知道什么问题。
The text was updated successfully, but these errors were encountered: