Good bye PHP 5.3 - Welcome to PHP 5.5
+
+
Par Remi le jeudi 20 juin 2013, 20:55 - HowTo - Lien permanent
As PHP version 5.5.0 is released, PHP 5.3 goes in security only maintenance mode, for 1 year, after 5.3.27 release which should be the last one. PHP-5.3 branch is closed now.
Of course, RPM are already available, see PHP version 5.5.0 final !
New features
foreach ($users as list($firstname, $lastname)) { echo "User: $firstname $lastname"; }
try { return 2; } finally { echo "Always displayed"; } echo "Never displayed";
echo array(1, 2, 3)[0];
echo (empty(foo()) ? "vide" : "plein");
- generators (RFC), read generators documentation
yield $i;
- Simplified password hashing API.
$hash = password_hash($password);
$ok = password_verify($password, $hash);
$it = getsome_SplObjectStorage(); foreach ($it as $key => $value) ...
- Zend OPcache
- gd extension use libgd 2.1.0
Deprecated features
- mysql extension, use mysqli. instead.
- preg_replace /e modifier, use preg_replace_callback instead
- mcrypt_ecb, mcrypt_cbc, mcrypt_cfb and mcrypt_ofb
Commentaires
I just noticed the PHP contributors listing (by number of commits, which is perhaps not the best indicator).
And for the day, fix for 2 minor regressions in GD extension (bug #65060 and #65084).