PHPDeveloper.orghttp://www.phpdeveloper.org
Up-to-the Minute PHP News, views and communityen-usTue, 31 Mar 2015 13:08:07 -050030http://www.phpdeveloper.org/news/20353http://www.phpdeveloper.org/news/20353
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 migrationpages 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.

Link: http://blog.nerdery.com/2013/11/code-compatible-php-5-4-5-5/]]>Wed, 06 Nov 2013 11:15:40 -0600http://www.phpdeveloper.org/news/5219http://www.phpdeveloper.org/news/5219
Stuart Hebert of the Gentoo blog has posted this new item as a reminder to all of those naysayers out there that didn't think it could be done that PHP4 and PHP5 can live together happily on the same box.

Today has served as a timely reminder to me that not everyone understands that it's perfectly possible to have both PHP4 and PHP5 installed in Apache at the same time. A lot of folks just stop when they learn that you can't load mod_php4 and mod_php5 at the same time into Apache. There's no solution in the excellent PHP Manual that I could spot this afternoon (maybe I've just missed it?), and a lot of folks just don't get any further along than that.

As an illustration of its possiblity, he points to this article from Andreas Korthaus showing how it's done under various different types of installs (Apache/CGI, Aapche/suphp).

]]>Fri, 21 Apr 2006 15:06:26 -0500http://www.phpdeveloper.org/news/4724http://www.phpdeveloper.org/news/4724
Sebastian Bergmann has updated a previous benchmark concerning the performance of PHP 5.1 as built with various versions of GCC.

I updated my previous benchmark of PHP 5.1. This time around I built PHP with GCC 3.4.5, GCC 4.0.2, and GCC 4.1.0.

The bottom line result seems to be that GCC 4 generates slightly slower code:

GCC 3.4.5: 15.223

GCC 4.0.2: 17.896

GCC 4.1.0: 17.847

When I have more time, I will investigate this further using alternative optimizations, including profiling-guided ones.

The detailed results are also included, showing how he came to each point mentioned above. They include the specs for the machine, how the testing was set up, and the detailed breakdown of the stats for each GCC version.]]>

Wed, 25 Jan 2006 06:40:40 -0600http://www.phpdeveloper.org/news/4576http://www.phpdeveloper.org/news/4576
this new article from InternetNews.com, there's a look back at where PHP has come from as well as a look forward to the new year and what we can expect.

PHP has long been a favorite dynamic programming language for Web developers. After 10 years of growth, 2006 looks to be a banner year for the open source language as its collaboration framework, partner ecosystem and the language itself are expected to grow and gain new users.

Look for a confluence of three distinct branches of the PHP language, with versions 4, 5 and 6 all likely to be out in the market in 2006. It will also be a year in which PHP will continue to challenge .NET and Java as the online language of choice for developers.

They also look at a brief history of PHP, what PHP6 has in store for the community, the confusion that the "three versions" (PHP 4.x, 5, and the upcoming 6) can cause. They wrap it all up with a positive note about PHP and its future from Andi Gutmans of Zend.]]>

Thu, 29 Dec 2005 06:46:09 -0600http://www.phpdeveloper.org/news/4454http://www.phpdeveloper.org/news/4454
this post on Nexen.net today, there's a look at a new post on Ernies Weblog concerning the use of multiple versions of PHP with Apache on Windows.

I had occasion to set up a dev box to test a couple of web apps against different php versions, so I thought I would share the steps. I have documented for 2 versions, but more can be done if required. This was done using Apache2 on Windows.

His process involves the installation of Apache first, then each of the PHP versions in seperate locations (to keep things clean). From there's it's a matter of creating two different services, one for each version og PHP. Then, whenever you need it, you can just fire up the appropriate version...]]>