1
0
mirror of https://github.com/danog/phpseclib.git synced 2024-12-03 10:08:04 +01:00

The user_error in _handle_error shouldn't be replaced..

This commit is contained in:
terrafrost 2012-11-29 00:19:09 -06:00
parent 3caaa91160
commit 3c6ae4312f
6 changed files with 6 additions and 6 deletions

View File

@ -2654,7 +2654,7 @@ class Crypt_RSA {
$class = defined('PHPSECLIB_EXCEPTION_CLASS') && class_exists(PHPSECLIB_EXCEPTION_CLASS) ? PHPSECLIB_EXCEPTION_CLASS : 'Exception';
throw(new $class($err_msg));
} else {
$this->_handle_error($err_msg);
user_error($err_msg);
}
}
}

View File

@ -552,7 +552,7 @@ class File_ANSI {
$class = defined('PHPSECLIB_EXCEPTION_CLASS') && class_exists(PHPSECLIB_EXCEPTION_CLASS) ? PHPSECLIB_EXCEPTION_CLASS : 'Exception';
throw(new $class($err_msg));
} else {
$this->_handle_error($err_msg);
user_error($err_msg);
}
}
}

View File

@ -1285,7 +1285,7 @@ class File_ASN1 {
$class = defined('PHPSECLIB_EXCEPTION_CLASS') && class_exists(PHPSECLIB_EXCEPTION_CLASS) ? PHPSECLIB_EXCEPTION_CLASS : 'Exception';
throw(new $class($err_msg));
} else {
$this->_handle_error($err_msg);
user_error($err_msg);
}
}
}

View File

@ -3854,7 +3854,7 @@ class File_X509 {
$class = defined('PHPSECLIB_EXCEPTION_CLASS') && class_exists(PHPSECLIB_EXCEPTION_CLASS) ? PHPSECLIB_EXCEPTION_CLASS : 'Exception';
throw(new $class($err_msg));
} else {
$this->_handle_error($err_msg);
user_error($err_msg);
}
}
}

View File

@ -1433,7 +1433,7 @@ class Net_SSH1 {
$class = defined('PHPSECLIB_EXCEPTION_CLASS') && class_exists(PHPSECLIB_EXCEPTION_CLASS) ? PHPSECLIB_EXCEPTION_CLASS : 'Exception';
throw(new $class($err_msg));
} else {
$this->_handle_error($err_msg);
user_error($err_msg);
}
}
}

View File

@ -2999,7 +2999,7 @@ class Net_SSH2 {
$class = defined('PHPSECLIB_EXCEPTION_CLASS') && class_exists(PHPSECLIB_EXCEPTION_CLASS) ? PHPSECLIB_EXCEPTION_CLASS : 'Exception';
throw(new $class($err_msg));
} else {
$this->_handle_error($err_msg);
user_error($err_msg);
}
}
}