您现在的位置是:首页 > 文章详情

AWS SDK 停止对 PHP 8.0.x 及以下版本的支持

日期:2024-07-11点击:377

AWS 软件工程师 Sean O'Brien 在日前发布的一篇博客文章中表示,从 2025 年 1 月 13 日开始,AWS SDK for PHP 将不再支持 PHP 8.0.x 以及 PHP 7.2.x、7.3.x 和 7.4.x。

因为上述版本已经分别于 2023 年 11 月、2020 年 11 月、2021 年 11 月和 2022 年 11 月结束了生命周期。对于目前仍在使用其中版本之一的用户,建议尽快升级到 PHP 8.1 或更高版本,以便继续接收 SDK 更新。

“PHP 小组最近终止了对 PHP 8.0.x 的支持,PHP 社区也在 8.0.x 及以下版本的 PHP 运行时达到生命周期终点后,开始放弃对它们的支持。这些运行时将不再有错误修复或安全更新。为了确保我们提供的是最新的安全库,我们正在进行迁移。为确保您的应用程序和服务保持安全,请升级到受积极支持的 PHP 运行时,如 8.1.x。”

对于继续使用 AWS SDK for PHP 并使用 PHP 8.0.x 或以下版本的用户,在创建任何客户端实例时都会显示以下消息:

 <?php /** * test.php */ require 'vendor/autoload.php'; use Aws\S3\S3Client; $s3Client = new S3Client([ 'region' => 'us-west-2', ]);
 $ php --version PHP 8.0.9 ... $ php test.php ... PHP Warning: This installation of the SDK is using PHP version 8.0.9, which will be deprecated on January 13th, 2025. Please upgrade your PHP version to a minimum of 8.1.x to continue receiving updates for the AWS SDK for PHP. To disable this warning, set `suppress_php_deprecation_warning` to `true` in the client constructor or set the environment variable AWS_SUPPRESS_PHP_DEPRECATION_WARNING to `true`. ...

Perforce 最近发布一份报告指出,近 55% 的受访者在生产中至少使用了一个已不受支持的 PHP 版本。虽然相较 2023 年的 61.9% 占比有所下降,但降幅不大。

相关阅读:

原文链接:https://www.oschina.net/news/301567/aws-sdk-php-8-0-x-end-of-support
关注公众号

低调大师中文资讯倾力打造互联网数据资讯、行业资源、电子商务、移动互联网、网络营销平台。

持续更新报道IT业界、互联网、市场资讯、驱动更新,是最及时权威的产业资讯及硬件资讯报道平台。

转载内容版权归作者及来源网站所有,本站原创内容转载请注明来源。

文章评论

共有0条评论来说两句吧...

文章二维码

扫描即可查看该文章

点击排行

推荐阅读

最新文章