PHP Classes

Reminder: Shortage of this package

Recommend this page to a friend!

      Inter Error and Exception Handler  >  All threads  >  Reminder: Shortage of this package  >  (Un) Subscribe thread alerts  
Subject:Reminder: Shortage of this package
Summary:a shortage of this package that can not catch FATAL ERROR
Messages:2
Author:Horse Luke
Date:2011-03-12 15:24:41
Update:2011-03-16 06:34:58
 

  1. Reminder: Shortage of this package   Reply   Report abuse  
Picture of Horse Luke Horse Luke - 2011-03-12 15:24:41
Due to php internal mechanism, FATAL ERROR (such as syntax error, require file failure, etc) will not pass to Inter Error and Exception Handler. As a result, any FATAL ERROR can not be log or display by this package.

So if you use this package as debug tool, but can not find the cause of the problem, you may have to use "ini_set('display_errors', 1)" or even change the php.ini setting directly to show fatal errors.

  2. Re: Reminder: Shortage of this package   Reply   Report abuse  
Picture of Horse Luke Horse Luke - 2011-03-16 06:34:58 - In reply to message 1 from Horse Luke
REV 169 UPDATE: Now this class can catch and log/display most of FATAL ERROR while PHP >= 5.2 (Some exception: occur PARSE ERROR in the file that want to include Error.php; errors that really from php internal).
See the updated mannual to know how to use it

REV 174 UPDATE: By default, it will not log E_STRICT