Make PHP 5.2 compatible
Merge pull request #29 from thewilkybarkid/php-5.2

Make PHP 5.2 compatible