PHP 5.3 compatibility
Merge pull request #2 from dmromanov/master

PHP 5.3 compatibility