PHP 5.3 compatible fix
Merge pull request #1 from skydiablo/master

PHP 5.3 compatible fix