Modified revision of the php module to bring it up to date