fix php 5.3.3 compatibility
Merge pull request #20 from sitron/master

Fix php 5.3.3 compatibility