add compatibility with php 5.3
Merge pull request #3 from cup-of-giraf/master

add compatibility with php 5.3