reverting php lib to remove commit a56e61c4421de9c2c7810331f3e69a67a0e70331 (fixes to issue 22; )