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

trevis · 2024-07-11 21:00:07 · 热度: 9

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 停止对 PHP 8.0.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% 占比有所下降,但降幅不大。

相关阅读:

为您推荐与 aws 相关的帖子:

暂无回复。
需要 登录 后方可回复, 如果你还没有账号请点击这里 注册