I am changing my project from php version 5.2.1 to 7(new version), but the project is in codegnitor version 1.7.2, So i should change php version,mysql to mysqli . Should i change Codegnitor version also
Should not be needed since php is (mostly) backwards compatible. I would however recommend to do it anyway.
Related
Is any one installed the following library or extension (curl,libcurl,pearl,pecl,mongodb driver for php) with php 5.6.6 or higher not 7 in Ubuntu 14
I have used all of this with php 5.5 now I afraid of version compatibility,
if any one ensure me to can I migrate from Ubuntu 12.0.4 to 14 and php 5.5 to 5.6.6 or higher ?
The library or extension are third party softwares which they are developed by there own and able to bind in PHP or any other language.
E.g. CURL library is developed in C and it can be used or bind in many different languages.
Also it is good to stay always up-to date, while upgrading to new version E.g PHP, you can check the change-log of version and base on that you can understand, Is any library supporting change or not.
Many Web Servers are always try to upgrade or staying latest versions of languages or you can also inform them to upgrade server base on requirement and they will do, so it is no worry about server configuration.
From my system I upgraded from Ubuntu 12.4 to 14.4 and currently PHP version is 5.5.9 and every library is working fine.
And thing is that when the language version upgraded some good stuff also come, some bugs are fixed. So its cool stuff to always stay up
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 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 am using xampp for my development, however the bundled version is 1.5.3, our servers are only 1.5.2.6 hence, I need to downgrade php so I dont use any 5.3 features.
Is this possible?
You can easily get older versions of XAMPP from SourceForge that contain the appropriate PHP version for your needs.
What are the differences between PHP 5.2.x and 5.3.x?
Because all extensions are made separately for these.
Thanks a lot.
PHP 5.3 is a newer version with a number of new features (closures, namespaces, etc.). Is is the current stable version for the PHP project. PHP 5.2 is an older version, which is now heading towards the end of its support cycle - now only important security issues are being fixed. If you start a new project, start it with PHP 5.3.
When changes in PHP core are made that change the structure enough that extensions can no longer be compatible - the second digit in the version number is incremented (5.0, 5.1, 5.2, 5.3). The first digit is for very major changes changing the whole language (like between PHP 4 and 5). Between 5.2 and 5.3, you can expect source code compatibility (though some incompatibilities exist) but not binary module compatibility.
You can find an exhaustive list of backwards incompatible changes from 5.2 to 5.3 on PHP.net.
PHP extensions depends on the phpapi version among other things, along with the Zend Module API version and the Zend Extension API version, which as far as I'm aware, changes at each PHP version because of the core changes made to the language. This explains why each PHP version has a new build for each extension.
You can find the answer in PHP official website.
In this page: Migrating from PHP 5.2.x to PHP 5.3.x.