News Feed
Sections




News Archive
feed this:

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/

Gentoo Blog:
Reminder - You *Can* Run PHP4 And PHP5 On The Same Box At The Same Time
April 21, 2006 @ 15:06:26

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).

0 comments voice your opinion now!
multiple versions same box simultaneous cgi module suphp multiple versions same box simultaneous cgi module suphp


Sebastian Bergmann's Blog:
PHP 5.1 / GCC Benchmark (Update)
January 25, 2006 @ 06:40:40

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.

0 comments voice your opinion now!
gcc benchmark update different versions php5.1 gcc benchmark update different versions php5.1


InternetNews.com:
PHP - Three Versions, One Promise
December 29, 2005 @ 06:46:09

In 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.

0 comments voice your opinion now!
three versions upcoming year three versions upcoming year


Ernies Blog:
Switching Between Multiple php Versions Using Apache on Windows
December 07, 2005 @ 07:31:47

In a pointer from 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...

0 comments voice your opinion now!
multiple windows versions apache multiple windows versions apache



Community Events





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


package library tips podcast list introduction deployment series api symfony zendserver laravel install language community interview opinion framework update release

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