PHP 变更日志代码分析
有谁知道哪里有一个查看 PHP 变更日志的好地方?功能具体?我一直在尝试阅读此内容,但结果令人困惑,http://php.net/ChangeLog-5。 我需要将我们的一台实时服务器从 516 更新为较新的版本,但我需要知道哪些功能已失效、已
弃用或未使用,以便我可以分析盒子上的代码。
有什么想法吗?或者是否有一个自动化服务可以解析项目的源代码并告诉您哪些功能特定于哪个版本?
Does anyone know where there is a nice place to view the changelog for PHP? Functions specifically? I've been trying to read this and it's proving confusing, http://php.net/ChangeLog-5.php
I need to update one of our live servers from 516 to something newer, but I need to know which functions are dead, deprecated or otherwise not in use, so that I can profile the code on the box.
Any ideas please? Or is there an automated service which can parse a project's source and tell you what functions are specific to which version?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是5.1 到 5.2 迁移指南。请特别注意向后不兼容的更改。这是 5.2 到 5.3 的相同指南,它是 BC 不兼容的更改。此外,从 PHP 5.3 开始,他们开始弃用一些东西,这可能会导致 E_DEPRECATED 警告。
我为 PHP_CodeSniffer 编写了一个编码标准,用于检查在 PHP 5.3 上抛出 E_DEPRECATED 的任何内容。不幸的是我无法分享它(因为它是在我老板时代写的)。但是,我只花了2-3个小时就写完了。你应该不会花太长时间:-)
Here's the 5.1 to 5.2 migration guide. Pay special attention to the backwards incompatible changes. And here's the same guide for 5.2 to 5.3 and it's BC incompatible changes. Also, with PHP 5.3 they started deprecating stuff which can cause E_DEPRECATED warnings.
I have written a coding standard for PHP_CodeSniffer that checks for anything that throws an E_DEPRECATED on PHP 5.3. Unfortunately I cannot share it (as it was written in my Boss' time). But, it took me just 2-3 hours to write. It shouldn't take you much longer :-)