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?
Nov 06, 2013 @ 17: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.

tagged: code compatible update versions phpcodesniffer standard phpcompatibility

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

Making the Web Blog:
Becoming PHP 6 Compatible
Dec 05, 2007 @ 17:13:00

On the Making the Web blog, there's this post that talks about looking forward with your code and making it ready for when PHP6 comes around.

If you want to make use of PHP 6 when it comes, you're going to have to write your new scripts so they are compatible, and possibly change some of your existing scripts. To start making your scripts PHP 6 compatible, I've compiled a list of tips to follow when scripting.

There's only five things in his list (like "stop using magic_quotes" and "don't register long arrays") but the comments provide many more additional gotchas to look out for and new features that will be included.

tagged: php6 compatible registerglobals magicquotes arrays preg reference php6 compatible registerglobals magicquotes arrays preg reference

Link:

Making the Web Blog:
Becoming PHP 6 Compatible
Dec 05, 2007 @ 17:13:00

On the Making the Web blog, there's this post that talks about looking forward with your code and making it ready for when PHP6 comes around.

If you want to make use of PHP 6 when it comes, you're going to have to write your new scripts so they are compatible, and possibly change some of your existing scripts. To start making your scripts PHP 6 compatible, I've compiled a list of tips to follow when scripting.

There's only five things in his list (like "stop using magic_quotes" and "don't register long arrays") but the comments provide many more additional gotchas to look out for and new features that will be included.

tagged: php6 compatible registerglobals magicquotes arrays preg reference php6 compatible registerglobals magicquotes arrays preg reference

Link:

Chris Shiflett's Blog:
Zend Framework License
Apr 26, 2006 @ 20:46:59

Chris Shiflett has some good news for all of the Zend Framework fans out there - the license that it's under is now compatible with the GPL.

This means you can use the ZF for your own GPL-licensed PHP project. The big change is the removal of the advertising clause: 'Redistributions of any form whatsoever must retain the following acknowledgment: "This product includes the Zend Framework, freely available at http://www.zend.com/"'

Chris notes also that it's a welcome change over to this pre-existing license to reduce the number of licenses that companies would have to change/evaluate.

tagged: zend framework license gpl compatible advertising clause zend framework license gpl compatible advertising clause

Link:

Chris Shiflett's Blog:
Zend Framework License
Apr 26, 2006 @ 20:46:59

Chris Shiflett has some good news for all of the Zend Framework fans out there - the license that it's under is now compatible with the GPL.

This means you can use the ZF for your own GPL-licensed PHP project. The big change is the removal of the advertising clause: 'Redistributions of any form whatsoever must retain the following acknowledgment: "This product includes the Zend Framework, freely available at http://www.zend.com/"'

Chris notes also that it's a welcome change over to this pre-existing license to reduce the number of licenses that companies would have to change/evaluate.

tagged: zend framework license gpl compatible advertising clause zend framework license gpl compatible advertising clause

Link:


Trending Topics: