Fix compilation for ZTS-enables PHP
Merge pull request #2 from wpj-cz/master

Fix compilation for ZTS-enables PHP