Development

Changeset 18811 for plugins/dsExtDirectPlugin

You must first sign up to be able to contribute.

Show
Ignore:
Timestamp:
06/01/09 19:49:04 (4 years ago)
Author:
dancablam
Message:

Enhanced error reporting so suppressed errors do not cause an exception to be thrown

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/dsExtDirectPlugin/trunk/lib/dsExtDirectErrorHandler.class.php

    r18437 r18811  
    2121{  
    2222  public static function handleError($errno, $errstr, $errfile, $errline, $errcontext = null) { 
     23    // If errors are suppressed or error reporting is not set do not throw error 
     24    if(($errno & error_reporting()) === 0) 
     25    { 
     26      return false; 
     27    } 
     28     
    2329    throw new ErrorException($errstr, 0, $errno, $errfile, $errline);  
    2430    die();