当前位置:首页>WordPress教程>截止WordPress 5.9.3,PHP 7.4.29依然是最佳版本

截止WordPress 5.9.3,PHP 7.4.29依然是最佳版本

5.6开始官方就宣布支持PHP 8,时间过去一年多了,.3确实已对PHP 8甚至是的兼容性有了很大的提升,PHP 7.4.29为什么还是WordPress的最佳选择呢?

原因一

程序虽已完全兼容PHP 8.1,但很多PHP的新特性并未完全应用,例如PHP 8 引入的两个即时编译引擎()等。

这样一来,相较于使用PHP 7.4.29,性能提升不大。

对于WordPress核心开发团队来讲,这也是一个两难的问题,一方面希望利用新技术使得WordPress更先进、性能更好;一方面又得兼顾还有大量用户正在使用PHP 7的兼容性。

这一问题只有缓慢推进才能解决,即将发布的也不可能马上全面升级至PHP 8.x。WordPress 6.0 Release Candidate 1已发布了,证实了这一点。

原因二

从了解的情况来看,很多插件在PHP 8.x版本中还是存在问题。WordPress网站基本上不可能不使用第三方的主题或插件,而所有或大部分开发者要全面升级到PHP 8.x也是一个漫长的过程。

至少现在,经常收到站长反馈部分插件在PHP 8.x中存在一些这样或那样的问题。

扩展阅读

当前最新的PHP 7版本

最新版:PHP 7.4.29

  • 此版本没有对源进行更改。此更新允许针对已收到的升级依赖项重新构建 Windows 二进制文件。
  • 更新到最新的 IANA 时区数据库 (2022a)。

当前最新的

最新版:PHP 8.1.5

  • Core:
    • Fixed bug#8176(Enum values in property initializers leak).
    • Fixed freeing of internal attribute arguments.
    • Fixed bug#8070(memory leak of internal function attribute hash).
    • Fixed bug#8160(ZTS support on Alpine is broken).
  • Filter:
    • Fixed signedness confusion in php_filter_validate_domain().
  • Intl:
    • Fixed bug#8115(Can't catch arg type deprecation when instantiating Intl classes).
    • Fixed bug#8142(Compilation error on cygwin).
    • Fixed bug#7734(Fix IntlPartsIterator key off-by-one error and first key).
  • MBString:
    • Fixed bug#8208(mb_encode_mimeheader: $indent functionality broken).
  • MySQLi:
    • Fixed bug#8068(mysqli_fetch_object creates inaccessible properties).
  • Pcntl:
    • Fixed bug#8142(Compilation error on cygwin).
  • PgSQL:
    • Fixed result_type related stack corruption on LLP64 architectures.
    • Fixed bug#8253(pg_insert() fails for references).
  • Sockets:
    • Fixed Solaris builds.
  • SPL:
    • Fixed bug#8121(SplFileObject – seek and key with csv file inconsistent).
    • Fixed bug#8192(Cannot override DirectoryIterator::current() without return typehint in 8.1).
  • Standard:
    • Fixed bug#8048(Force macOS to use statfs).

原文地址:https://www.zhanzhangb.com/3274.html

WordPress教程

区块链技术将彻底颠覆房地产投资行业

2024-1-24 2:41:01

WordPress教程

为什么华为对待Linux Kernel 5.10这么积极?

2024-1-24 2:41:03

个人中心
今日签到
有新私信 私信列表
搜索