Fix error on compiling php version 5.2

This is the fix for issue #175. The patch released before didn't worked.