Fix for PHP 5.3 compatibility.
Merge pull request #1 from gnott/master

Fix for PHP 5.3 compatibility.