Do you know how to downgrade php from 5.6 to 5.3?
I created a website with PHP 5.6 but when my client uploaded on their server some functions on my website are not compatible and they say that the problem is because their PHP version is 5.3 and I don't know about it, so they want me to downgrade my PHP version. Can you help me?
Or any solution to my problem? So, my website can be compatible on their server.
You're most likely talking not about downgrading of the PHP executables, but about downgrading language level from 5.6 to 5.3
There is no automatic way to do it, but you can study syntax changes between versions (information can be found into official manual) and update your code accordingly.
Also it may be good idea to remind customer that PHP 5.3 is not supported anymore so it may be good idea to upgrade PHP version instead of downgrading site. 5.3 -> 5.6 upgrade is relatively plainless.
Related
I have a simple question why do we need to upgrade PHP version on a live server? Is there any good reason to do so? I'm confused; we're using PHP 5.3 and our CEO doesn't want to update to PHP 5.5 which is recommended in Laravel 5. Can somebody give me reason why we should or we shouldn't do it?
Further to some of the comments on your question:
Do we need to upgrade PHP
The answer to this part of the question is "No". In some cases it might not be possible to upgrade as newer version can cause applications to break if they rely on older features.
Do we need to upgrade PHP for Laravel 5
The answer to this part is "Yes". You will have to upgrade for Laravel 5 as it relies on newer features of PHP that only exist from PHP 5.4 (Laravel 5) and 5.5.9 (Laravel 5.1).
Should we upgrade PHP
You didn't ask this question, but I put it in here because Yes, you should. Versions of PHP have a lifetime. They are supported in full for bugs for a while, and then they are supported for security flaws for slightly longer. However, after a while, versions of PHP will no longer receive any support. Security holes might be found in older version that will never be patched. You should keep your version of PHP up to date in order to remain safe from PHP vulnerabilities that may have been discovered.
As always, the PHP website contains all the information about the currently supported versions of PHP: http://php.net/supported-versions.php
Recently, I require to upgrade PHP version from 5.3.3 to higher. Can any one tell me which version of PHP I should upgrade for? Which one is more stable? PHP 5.4 or 5.5 or 5.6?
The latest stable version is PHP 5.6.11
According to the release history, 5.4 is only getting security updates and 5.5 will stop getting bug fixes in 10 months. So 5.6 is your best bet. Considering there are only minor syntax changes between these versions, you should go for the latest anyway.
The 5.3 to 5.4 gap may require some alterations in your code. And if your code works on 5.4, it will also work on 5.6, so just use the latest.
I need to install a plugin on my website which requires PHP >= 5.5. Right now i'm running PHP 5.3.3 on CentOS 6.6.
Is it safe tou upgrade PHP or there is a a tangible risk that some
applications won't work after upgrade?
Is there a way to "rollback" the upgrade? So that i upgrade, i check that everything works and, if not, i downgrade.
Thanks!
Yes, there is a chance that some applications won't work. I upgraded from 5.3 to 5.4 on a system and found that a bug appeared in production code. It wasn't anything that couldn't be fixed. Of course, there have been other times where an upgrade worked flawlessly.
If you install 5.5 on the system without disturbing the 5.3 installation then it should be possible to rollback to 5.3 if needed. Just save the server configuration for 5.3 before pointing it to 5.5.
I want to upgrade my PHP version from 5.2.3 to 5.5.9. I want to know what are the major problems involved with the functionality after upgradation .
My PHP is running in WAMP server.
Thanks in advance
The short answer is that yes, your code could break so you should test it.
Here's the list of Backward Incompatible Changes from PHP 5.2 to 5.3
And here's the list of Backward Incompatible Changes from PHP 5.3 to 5.4
And here's the list of Backward Incompatible Changes from PHP 5.4 to 5.5
Read each of these and see if you're using any of those functions in the ways described.
I need to upgrade PHP from PHP 5.3 to 5.5. So I need to know while upgrading this, Do I also need to upgrade the PHP extensions like php.xml? Which depends on PHP 5.3.
thanks in advance.