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

有帮助吗?

解决方案

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 .

其他提示

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:

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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top