Fix PHP error reporting