WSF-PHP: Support for php 5.4

Tested with Ubuntu 12.04
Remember to compile it using gcc 4.4: './configure CC=gcc-4.4'