Page 1 of 1

Which version of PHP do you have as a minimum specification?

Posted: Sun Dec 05, 2010 6:18 am
by jarofgreen
On our open source project, we currently try to target PHP5 as the minimum required version.

However PHP 5.2 has some nice features it would be good to use.

Are there are survey's of which version of PHP is installed on servers? What do you have as a minimum specification for open projects? I'm going to add a poll but if anyone has links to surveys that would be great ...

(I'm saying open, cos on closed projects presumably you control the server so this isn't a problem, you can specify what you want.)

Re: Which version of PHP do you have as a minimum specificat

Posted: Sun Dec 05, 2010 6:30 am
by jarofgreen
Altho I suddenly thought, have they ended security updates for 5 and 5.1, in which case I should really take those options off the poll and just ask about 5.2 and 5.3 ... can't find any definite information but it looks like it. Anyone know?

Re: Which version of PHP do you have as a minimum specificat

Posted: Sun Dec 05, 2010 6:35 am
by jarofgreen
Doing some Googling, and found that adoption rates are far slower than I thought. I assumed everyone would have as a minimum requirement a PHP version that was getting security updates at least ...

http://wpdevel.wordpress.com/2010/07/09 ... -2010-dev/ says
For WordPress 2.7 and higher, 7.56% are using PHP 4.
For WordPress 2.7 and higher, 3.60% are using PHP 5.0.x or 5.1.x.
Combined, that is 11.16% of WordPress installs using a PHP version lower than 5.2.
Wow. They ended security updates for PHP4 years ago. Who are these people?

Re: Which version of PHP do you have as a minimum specificat

Posted: Sun Dec 05, 2010 6:53 am
by Eran
I typically use 5.2+, but that's mainly cause it's required by the Zend Framework which I use.

Re: Which version of PHP do you have as a minimum specificat

Posted: Mon Dec 06, 2010 2:35 am
by greyhoundcode
5.2+

However I've been looking into Lithium and for future projects it's likely to be 5.3 minimum for me.

Re: Which version of PHP do you have as a minimum specificat

Posted: Mon Dec 06, 2010 4:35 am
by jarofgreen
http://www.php.net/archive/2010.php#id2010-07-22-1 said on 22-Jul-2010
[PHP 5.2.14] marks the end of the active support for PHP 5.2. Following this release the PHP 5.2 series will receive no further active bug maintenance. Security fixes for PHP 5.2 might be published on a case by cases basis. All users of PHP 5.2 are encouraged to upgrade to PHP 5.3.
I can find no mention on the official blog of when 5.0 and 5.1 security support ended, but I'm going to guess from the fact that they are not even mentioned on the downloads page that it has.

Given that, I'm going to jump to 5.2 so I can use some of the later features to.

Interesting how slow the adoption rate of others is.

http://wordpress.org/about/requirements/ still says
PHP version 4.3 or greater
http://drupal.org/requirements says
Recommended: PHP 5.2.x
Required: PHP version 4.4.0 or higher (Contributed modules may not support this version of PHP)
http://www.joomla.org/technical-requirements.html says
Recommended 5.2+ Minimum 4.3.10
I'd still be very curious to find out which version of PHP most web-hosts offer, if anyone knows ...