Fix more PHP

Less bugs.

Signed-off-by: Paul Brook <paul@nowt.org>