Php: Some changes to error showing

Signed-off-by: Frca <killerfrca@gmail.com>