mirza
mirza

Reputation: 5793

Why has PHP two different version updates?

As far as I can see from changelog, there are two different major versions. 5.4 and 5.3. What's the difference ?

Upvotes: 1

Views: 78

Answers (3)

hakre
hakre

Reputation: 198199

Currently, the PHP branches 5.3.* and 5.4.* are under stable development, PHP 5.5.* is upcomming. Normally PHP.net supports two stable versions in parallel so you can more swiftly go from one version to the other.

https://wiki.php.net/rfc/releaseprocess

Upvotes: 0

Sébastien Renauld
Sébastien Renauld

Reputation: 19672

The answer for you is that PHP5.4 added breaking changes compared to 5.3 for shared hosting environments, including:

  • safe_mode going away (along with all its friends)
  • magic_quotes going away (and as a lot of legacy code relies on it to sanitize, its removal is a bad idea)
  • call-time PBref has been removed (this causes a LOT of warnings on legacy code)
  • register_globals was thrown off. This completely breaks some legacy code.

So, for that reason, for now, they're keeping PHP5.4 and PHP5.3 both current at the same time. This is the first time this happened in such a fashion, though. You can find the full list of breaking changes here: http://php.net/manual/en/migration54.incompatible.php .

Upvotes: 2

paulsm4
paulsm4

Reputation: 121869

There are many major versions, not just two. Including 5.0, 5.1, ... and 5.3 and 5.4.

The changelog you cited is exactly the right place to look for specific details on any version.

You can also Google for "PHP 5.4 release" or "PHP 5.3 release" to get an abbreviated summary. For example:

Upvotes: 1

Related Questions