11.07.2015 Views

PHP MySQL - Stilson.net

PHP MySQL - Stilson.net

PHP MySQL - Stilson.net

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CHAPTER 8 • ERROR AND EXCEPTION HANDLINGwww.it-ebooks.infoSetting the Desired Error Sensitivity LevelThe error_reporting directive determines the reporting sensitivity level. Sixteen separate levels areavailable, and any combination of these levels is valid. See Table 8-1 for a complete list of these levels.Note that each level is inclusive of all levels below it. For example, the E_ALL level reports any messagesfrom the 15 levels below it in the table.Table 8-1. <strong>PHP</strong>’s Error-Reporting LevelsError LevelE_ALLE_COMPILE_ERRORE_COMPILE_WARNINGE_CORE_ERRORE_CORE_WARNINGE_DEPRECATEDE_ERRORE_NOTICEE_PARSEDescriptionAll errors and warningsFatal compile-time errorsCompile-time warningsFatal errors that occur during <strong>PHP</strong>’s initial startWarnings that occur during <strong>PHP</strong>’s initial startWarnings regarding use of features scheduled for removal in a future <strong>PHP</strong>release (introduced in <strong>PHP</strong> 5.3)Fatal run-time errorsRun-time noticesCompile-time parse errorsE_RECOVERABLE_ERROR Near-fatal errors (introduced in <strong>PHP</strong> 5.2)E_STRICT <strong>PHP</strong> version portability suggestions (introduced in <strong>PHP</strong> 5.0)E_USER_DEPRECATEDE_USER_ERRORE_USER_NOTICEE_USER_WARNINGE_WARNINGWarnings regarding user-initiated use of features scheduled for removal infuture <strong>PHP</strong> release (introduced in <strong>PHP</strong> 5.3)User-generated errorsUser-generated noticesUser-generated warningsRun-time warningsIntroduced in <strong>PHP</strong> 5, E_STRICT suggests code changes based on the core developers’ determinationsas to proper coding methodologies and is intended to ensure portability across <strong>PHP</strong> versions. If you use176

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!