Fix for PHP Strict
Merge pull request #3 from gamma/master

I've just merged the code. Thank you very much for your valuable improvements.