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

Make module PHP 5.2 compatible