Fix php 5.3.x compatibility
Merge pull request #167 from netounet/master

Fix php 5.3.x compatibility