Want to upgrade from PHP 5.3 to 5.4?

I just started working with php, so I do not know what is related to updates. I am currently working with php 5.3 and want to upgrade to 5.4. How it's done? Is this a simple installation of 5.4? Will this break code be written in 5.3?

+6
source share
2 answers

Migrating from PHP 5.3.x to PHP 5.4.x is information about this update.

Especially consider the Failover Changes section. Some functions have been removed in PHP 5.4, and if your PHP 5.3 code uses them, you will get errors. For example, the session_register() function does not exist in PHP 5.4

+4
source

It depends on which Linux distribution. you're using.

You can try: yum update php

Or: sudo apt-get install php5-cgi php5-cli

I highly recommend that you test your code on 5.4 before updating any server in real time, as there are likely to be some breaks (as usual with most PHP updates).

0
source

All Articles