Make work with latest PHP

Signed-off-by: Sven Strickroth <email@cs-ware.de>