protected static function getErrorType($errno)
    {
        switch ($errno) {
            case E_ERROR:
                $errtype = 'A fatal error that causes script termination.';
                break;
            case E_WARNING:
                $errtype = 'Run-time warning that does not cause script termination.';
                break;
            case E_PARSE:
                $errtype = 'Compile time parse error.';
                break;
            case E_NOTICE:
                $errtype = 'Run time notice caused due to error in code.';
                break;
            case E_CORE_ERROR:
                $errtype = 'Fatal errors that occur during PHP\'s initial startup (installation).';
                break;
            case E_CORE_WARNING:
                $errtype = 'Warnings that occur during PHP\'s initial startup.';
                break;
            case E_COMPILE_ERROR:
                $errtype = 'Fatal compile-time errors indication problem with script.';
                break;
            case E_COMPILE_WARNING:
                $errtype = 'Non-Fatal Run Time Warning generated by Zend Engine.';
                break;
            case E_USER_ERROR:
                $errtype = 'User-generated error message.';
                break;
            case E_USER_WARNING:
                $errtype = 'User-generated warning message.';
                break;
            case E_USER_NOTICE:
                $errtype = 'User-generated notice message.';
                break;
            case E_STRICT:
                $errtype = 'Run-time notices.';
                break;
            case E_RECOVERABLE_ERROR:
                $errtype = 'Catchable fatal error indicating a dangerous error.';
                break;
            default:
                $errtype = 'Unknown';
                break;
        }

        return $errtype;
    }
protected static function getErrorType($errno)
    {
        switch ($errno) {
            case E_ERROR:
                $errtype = 'A fatal error that causes script termination.';
                break;
            case E_WARNING:
                $errtype = 'Run-time warning that does not cause script termination.';
                break;
            case E_PARSE:
                $errtype = 'Compile time parse error.';
                break;
            case E_NOTICE:
                $errtype = 'Run time notice caused due to error in code.';
                break;
            case E_CORE_ERROR:
                $errtype = 'Fatal errors that occur during PHP\'s initial startup (installation).';
                break;
            case E_CORE_WARNING:
                $errtype = 'Warnings that occur during PHP\'s initial startup.';
                break;
            case E_COMPILE_ERROR:
                $errtype = 'Fatal compile-time errors indication problem with script.';
                break;
            case E_COMPILE_WARNING:
                $errtype = 'Non-Fatal Run Time Warning generated by Zend Engine.';
                break;
            case E_USER_ERROR:
                $errtype = 'User-generated error message.';
                break;
            case E_USER_WARNING:
                $errtype = 'User-generated warning message.';
                break;
            case E_USER_NOTICE:
                $errtype = 'User-generated notice message.';
                break;
            case E_STRICT:
                $errtype = 'Run-time notices.';
                break;
            case E_RECOVERABLE_ERROR:
                $errtype = 'Catchable fatal error indicating a dangerous error.';
                break;
            default:
                $errtype = 'Unknown';
                break;
        }

        return $errtype;
    }
protected static function getErrorType ( $ errno ) { switch ( $ errno ) { case E_ERROR : $ errtype = 'A fatal error that causes script termination.' ; break ; case E_WARNING : $ errtype = 'Run-time warning that does not cause script termination.' ; break ; case E_PARSE : $ errtype = 'Compile time parse error.' ; break ; case E_NOTICE : $ errtype = 'Run time notice caused due to error in code.' ; break ; case E_CORE_ERROR : $ errtype = 'Fatal errors that occur during PHP\'s initial startup (installation).' ; break ; case E_CORE_WARNING : $ errtype = 'Warnings that occur during PHP\'s initial startup.' ; break ; case E_COMPILE_ERROR : $ errtype = 'Fatal compile-time errors indication problem with script.' ; break ; case E_COMPILE_WARNING : $ errtype = 'Non-Fatal Run Time Warning generated by Zend Engine.' ; break ; case E_USER_ERROR : $ errtype = 'User-generated error message.' ; break ; case E_USER_WARNING : $ errtype = 'User-generated warning message.' ; break ; case E_USER_NOTICE : $ errtype = 'User-generated notice message.' ; break ; case E_STRICT : $ errtype = 'Run-time notices.' ; break ; case E_RECOVERABLE_ERROR : $ errtype = 'Catchable fatal error indicating a dangerous error.' ; break ; default : $ errtype = 'Unknown' ; break ; } return $ errtype ; }
convert PHP ERROR to error detail

@param  int $errno
@return string
convert PHP ERROR to error detail