First PHP 5.5 Development Preview Released
Written by Ian Elliot   
Monday, 19 November 2012

New feature in PHP 5.5 include support for generators and a new password hashing API. It will no longer support Windows XP and 2003.

The release of PHP 5.5.0 Alpha1 marks the beginning of the release cycle for the next version of the scripting language widely used for web development. PHP users are being asked to test it and submit bug reports - but bear in mind this is only the first step to a production version.

The new password hashing API will enable developers to generate a secure salted password hash using Bcrypt in a single line of code:

$hash = password_hash($password, PASSWORD_DEFAULT);

A salt is not needed as it will be auto-generated by the API if not present and added as a random component to the password.

As the Bcrypt hash method is computationally intensive and requires a lot of memory, its use makes passwords difficult to crack - providing they are long enough. Also the use of salts the use of rainbow tables is limited.  If the user wants, the hash function call can not only specify its own salt but also adjust the complexity (cost) of the Bcrypt method or change the hashing method entirely. This information is stored along with the hashed password.

Other improvements in this version include:

  • support for finally in try/catch blocks
  • support for list() in foreach
  • constant array/string dereferencing
  • ext/intl improvement
  • support for using empty() on the result of function calls and other expressions

plus many more improvements and bug fixes that are listed on the PHP News file on github.


The currently supported stable releases of PHP are versions 5.4.8 and 5.3.18.


More Information

PHP Site

PHP Downloads page

Related Articles

PHP v Ruby v Python - The Language Crunch

PHP 5.4 - A Major Update

Language Wars - PHP, Python, Ruby

Beginning PHP 5.3 (book review)

PHP in Action (book review)

PHP 5 in Practice (book review)


blog comments powered by Disqus


To be informed about new articles on I Programmer, install the I Programmer Toolbar, subscribe to the RSS feed, follow us on, Twitter, Facebook, Google+ or Linkedin,  or sign up for our weekly newsletter.



Raspberry Pi Photo Competition Results Are Stunning

The results of the Raspberry Pi photo competition organized by Adafruit have been revealed and, while the prizes awarded might seem low, the results are amazing. 

Microsoft Research Shows How To Turn Any Camera Into A Depth Camera

It's SIGGRAPH so you expect a lot of amazing graphics, but Microsoft seems to cornering the market in wow. In this case, take any ordinary video camera and, with a small change, turn it into a really  [ ... ]

More News

Last Updated ( Monday, 19 November 2012 )

RSS feed of news items only
I Programmer News
Copyright © 2014 All Rights Reserved.
Joomla! is Free Software released under the GNU/GPL License.