New PHP version - v5.5

IT News & Other

In 20-Jun-2013 the PHP development team announced release of PHP 5.5.0

Compared to the previous version I could say that PHP v5.5 it does not come with any major changes, but like other major version has few significant changes like finally keyword in try catch structure or depreciation of the mysql_* functions.



New features:

1. Generators feature (provide an easy way to implement simple iterators).

2. try-catch blocks now support a finally block which is executed after execution of the code from try block even if no exception is thrown(similar with try-catch blocks from java).

3. foreach construct and empty() function support new features.

4. Classname can be obtain more easily now with:

echo ClassName::class;

GD library was updated with new features and new cache extension OPcache was added.


Removed/deprecated features:

1. preg_replace() function

2. mcrypt_* functions

3. original MySQL extension is now deprecated (mysql_* functions)

4. PHP logo GUIDs have been removed.

Add comment


Warning: Unknown: write failed: Disk quota exceeded (122) in Unknown on line 0

Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0