Make compatible with PHP 5.3
Merge pull request #1 from kirara/master

Make compatible with PHP 5.3