PHP 5.3.x will be the Default PHP Version from March 1 2014

PHP 5.3.x will now be default PHP Version from March, 1 2014. Please note we made similar annoucement on January, 15 2013 “Path to PHP 5.3”.

If you want to use PHP 5.2.17 on your web site, please insert following line in your .htaccess file.

AddHandler application/x-httpd-php52 .php

CPHosting to End Support for PHP 5.2

CPHosting announces that it will no longer support PHP 5.2.x beginning April, 1 2014. However, CPHosting will continue to provide PHP 5.2.17 support on legecy servers till old compiles are available.

PHP 5.2.x has not been actively developed, or supported by the PHP developers, since April 2010. Many CVEs reported against newer versions of PHP are also applicable in version 5.2.x, but remain unaddressed by the PHP developers.

Please note many PHP versions are available on all Linux Shared and Reseller hosting accounts by adding the following code to your .htaccess file:

For PHP 5.2.17 insert following line in your .htaccess file. Please note PHP 5.2.17 is available only on legecy servers where old compile is available.
AddHandler application/x-httpd-php52 .php

For PHP 5.3.x  insert following line in your .htaccess file
AddHandler application/x-httpd-php53 .php

For PHP 5.4.x  insert following line in your .htaccess file
AddHandler application/x-httpd-php54 .php

For PHP 5.5.x  insert following line in your .htaccess file
AddHandler application/x-httpd-php55 .php

Development of PHP 5.2.x was stopped in 2008 and since then there has only been few security patches released for 5.2.x. Last security patch for php 5.2.x was released some where in April 2010.  PHP 5.3.0 was released on June 30 2009 with some major bug fixes, security patches and new PHP functions.  Unfortunately, newer PHP version will break some very old scripts and may produce errors.  These errors can be fixed by simply upgrading your scripts to latest version.  All newer version of wordpress, joomla, vbulltein, popular shopping cart software released after 2009/2010 support PHP 5.3.

In PHP 5.3 there are a number of deprecated functions and INI calls. Please read the following URL very carefully and check your custom code for any of the functions on this webpage and update your code at earliest.

The PHP 5.3 deprecated function list is here:

http://php.net/manual/en/migration53.deprecated.php

here is a local list for your ease of viewing:

Deprecated functions in PHP 5.3:

call_user_method() (use call_user_func() instead)
call_user_method_array() (use call_user_func_array() instead)
define_syslog_variables()
dl()
ereg() (use preg_match() instead)
ereg_replace() (use preg_replace() instead)
eregi() (use preg_match() with the ‘i’ modifier instead)
eregi_replace() (use preg_replace() with the ‘i’ modifier instead)
set_magic_quotes_runtime() and its alias, magic_quotes_runtime()
session_register() (use the $_SESSION superglobal instead)
session_unregister() (use the $_SESSION superglobal instead)
session_is_registered() (use the $_SESSION superglobal instead)
set_socket_blocking() (use stream_set_blocking() instead)
split() (use preg_split() instead)
spliti() (use preg_split() with the ‘i’ modifier instead)
sql_regcase()
mysql_db_query() (use mysql_select_db() and mysql_query() instead)
mysql_escape_string() (use mysql_real_escape_string() instead)
Passing locale category names as strings is now deprecated. Use the LC_* family of constants instead.
The is_dst parameter to mktime(). Use the new timezone handling functions instead.

Deprecated features in PHP 5.3:

Assigning the return value of new by reference is now deprecated.
Call-time pass-by-reference is now deprecated.

Please feel free to contact support team with any further questions you might have.