Fix php 5.3 compatibility
Merge pull request #12 from kisglaci/master

Fix php 5.3 compatibility