Bugfix for PHP < 5.3.0
Merge pull request #686 from rozwell/master

Bugfix for PHP < 5.3.0