Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Part II: PHP Programming > Error Management and Exception Handling

Chapter 9. Error Management and Exception Handling

This chapter examines error management and exception handling. Error management qualifies how you configure and manage errors in your PHP environment. Errors can be compile-time or run-time failures. Run-time errors are not run-time exceptions but behave differently, requiring proactive management in your programming code. Prior to PHP 5, run-time errors were often simply suppressed by the error control operator.

Beginning with PHP 5, you manage known run-time errors by both suppressing and rethrowing them as exceptions. Exceptions are also new to PHP 5. Run-time events raise exceptions, which don’t happen during the parsing phase like compile-time errors. Exception handling qualifies how you manage run-time failures in your programs.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint