php 5.3 compatibility
Merge pull request #7 from smatyas/php53-comp

php 5.3 compatibility