PHP hat zwei parallele Systeme für Probleme: traditionelle Fehler (Warnings, Notices, Fatal Errors) und Exceptions (objektorientiert, mit try/catch abfangbar). Modernes PHP vereint vieles davon unter einer Throwable-Hierarchie, und bewährte Praktiken bevorzugen Exceptions.
Traditionelle Fehler-Level
E_NOTICE → minor issues (e.g. using an undefined variable) — script continues
E_WARNING → non-fatal problems (e.g. include of a missing file) — continues
E_ERROR / Fatal → serious errors (e.g. calling an undefined function) — script HALTS
E_DEPRECATED → use of deprecated features
