News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

The Nerdery:
Is my code compatible with PHP 5.4 or 5.5?
November 06, 2013 @ 11:15:40

On The Nerdery's blog today there's a new post that shows you a way to help test your code for PHP 5.4 and 5.5 - via PHP_CodeSniffer - as well as mentioning some of the changes that came with these versions.

Do you want to know if your code is compatible with that latest version of PHP? Do you need to upgrade your existing PHP website to a newer version of PHP? Do you want to see if your legacy PHP code is using any features that have been removed or deprecated in later versions of PHP? [...] ou need to migrate your existing code to ensure nothing will break when the upgrade occurs. How can you accomplish that?

They start with the list of differences (and backward incompatible changes) in the newer versions and point to the migration pages for each. Then they get into the use of PHP_CodeSniffer and some additional rules provided by Win Godden for checking the compatibility. With these added in, you can call the "phpcs" checking tool with the "PHPCompatibility" standard and check out the results. An example of what you might see on an older application is included in the post.

0 comments voice your opinion now!
code compatible update versions phpcodesniffer standard phpcompatibility

Link: http://blog.nerdery.com/2013/11/code-compatible-php-5-4-5-5/

blog comments powered by Disqus

Similar Posts

PHPro.org: SQLite-ON DUPLICATE KEY UPDATE

Alison Holloway's Blog: Updated Underground PHP and Oracle Manual

Community News: Delphi for PHP Updated - Version 2

NetTuts.com: How to Write Testable and Maintainable Code in PHP

Mike Naberezny\'s Blog: Zend Framework Manual Updated


Community Events

Don't see your event here?
Let us know!


part2 framework community programming symfony opinion php7 list composer introduction api yii2 example interview language series project laravel application podcast

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework