Donel fix bugs in PHP