7.5. Summary

In this chapter, you learned about the various types of errors PHP and PEAR can generate and handle. You learned how to customize error handling through php.ini, write your own error handlers, and convert PHP errors to PEAR errors or exceptions.

You learned about the problems that may be caused by differences between server back-ends (SAPI modules) and operating systems and some ways of dealing with portability.

Finally, you learned how to best use exceptions with PHP and the specifics of using exceptions with PEAR.

At the time of writing, the PEAR community is still working out how to best introduce and use exceptions with PEAR, so using exceptions with PEAR has been deliberately left out of this edition of this book. Keep an eye ...

Get PHP 5 Power Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.