Fix issues with PHP 5.2 compatibility
Merge pull request #4 from ryancramerdesign/dev

Fix issues with PHP 5.2 compatibility