Compatible with PHP 5.2
Merge pull request #167 from Ashrey/dev

Compatible with PHP 5.2