Fix for php >= 5.4
Merge pull request #1 from v4l3r10/master

Fix for php >= 5.4