Fix for php < 5.5
Merge pull request #3 from arcanacode/develop

Fix for php < 5.5