public static function errorHandler($errno, $errstr, $errfile, $errline, $errcontext)
    {
        if (count(self::$interceptor_stack) > 0)
        {
            $interceptor = end(self::$interceptor_stack);
            if ($interceptor->intercept($errno, $errstr, $errfile, $errline, $errcontext))
            {
                return;
            }
        }

        throw new ErrorException($errstr, 0, $errno, $errfile, $errline);
    }