public function errorHandler($errno, $errstr, $errfile, $errline, $errcontext)
    {
        // Don't throw exception if error reporting is switched off
        if (error_reporting() == 0) {
            return;
        }
        // Only throw exceptions for errors we are asking for
        if (error_reporting() & $errno) {

            $exception = new ErrorException($errstr, 0, $errno, $errfile, $errline);
            if ($this->throwErrorExceptions) {
                throw $exception;
            } else {
                $this->fb($exception);
            }
        }
    }
public function errorHandler($errno, $errstr, $errfile, $errline, $errcontext)
    {
        // Don't throw exception if error reporting is switched off
        if (error_reporting() == 0) {
            return;
        }
        // Only throw exceptions for errors we are asking for
        if (error_reporting() & $errno) {

            $exception = new ErrorException($errstr, 0, $errno, $errfile, $errline);
            if ($this->throwErrorExceptions) {
                throw $exception;
            } else {
                $this->fb($exception);
            }
        }
    }
public function errorHandler ( $ errno , $ errstr , $ errfile , $ errline , $ errcontext ) { // Don't throw exception if error reporting is switched off if ( error_reporting ( ) == 0 ) { return ; } // Only throw exceptions for errors we are asking for if ( error_reporting ( ) & $ errno ) { $ exception = new ErrorException ( $ errstr , 0 , $ errno , $ errfile , $ errline ) ; if ( $ this -> throwErrorExceptions ) { throw $ exception ; } else { $ this -> fb ( $ exception ) ; } } }
FirePHP's error handler

Throws exception for each php error that will occur.

@param int $errno
@param string $errstr
@param string $errfile
@param int $errline
@param array $errcontext
FirePHP s error handler