Fix error on compiling php version 5.2
Merge pull request #199 from GM-Alex/fix-php5.2

Fix error on compiling php version 5.2