PHP Doku:: Error Reporting - migrating5.errorrep.html

Verlauf / Chronik / History: (1) anzeigen

Sie sind hier:
Doku-StartseitePHP-HandbuchAppendicesMigrating from PHP 4 to PHP 5.0.xError Reporting

Ein Service von Reinhard Neidl - Webprogrammierung.

Migrating from PHP 4 to PHP 5.0.x

<<New Object Model

Classes and Objects (PHP 4)>>

Error Reporting

As of PHP 5 the error reporting constant E_STRICT is available, with the value 2048. When enabled, messages will be issued to warn you about code usage which is deprecated or which may not be future-proof.

Hinweis: E_ALL does not include E_STRICT, so it's not enabled by default. You must explicitly set the error reporting level to include E_STRICT in order to see these messages.

See Predefined Constants for more information.


Ein BenutzerBeitrag:
- Beiträge aktualisieren...
Anonymous
31.03.2008 15:52
To enable full error reporting (recommended for development boxes) use:

use error_reporting(E_ALL | E_STRICT);

or in php.ini:

error_reporting  =  E_ALL | E_STRICT



PHP Powered Diese Seite bei php.net
The PHP manual text and comments are covered by the Creative Commons Attribution 3.0 License © the PHP Documentation Group - Impressum - mail("TO:Reinhard Neidl",...)