From 3c6ae4312fecc4ce8558cefd302c73173ae3fde0 Mon Sep 17 00:00:00 2001 From: terrafrost Date: Thu, 29 Nov 2012 00:19:09 -0600 Subject: [PATCH] The user_error in _handle_error shouldn't be replaced.. --- phpseclib/Crypt/RSA.php | 2 +- phpseclib/File/ANSI.php | 2 +- phpseclib/File/ASN1.php | 2 +- phpseclib/File/X509.php | 2 +- phpseclib/Net/SSH1.php | 2 +- phpseclib/Net/SSH2.php | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/phpseclib/Crypt/RSA.php b/phpseclib/Crypt/RSA.php index df090857..7b921ac1 100644 --- a/phpseclib/Crypt/RSA.php +++ b/phpseclib/Crypt/RSA.php @@ -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); } } } \ No newline at end of file diff --git a/phpseclib/File/ANSI.php b/phpseclib/File/ANSI.php index b601e222..4f500f9b 100644 --- a/phpseclib/File/ANSI.php +++ b/phpseclib/File/ANSI.php @@ -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); } } } diff --git a/phpseclib/File/ASN1.php b/phpseclib/File/ASN1.php index dcc8da45..241048b2 100644 --- a/phpseclib/File/ASN1.php +++ b/phpseclib/File/ASN1.php @@ -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); } } } diff --git a/phpseclib/File/X509.php b/phpseclib/File/X509.php index 7e1e6b8d..b4361bad 100644 --- a/phpseclib/File/X509.php +++ b/phpseclib/File/X509.php @@ -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); } } } diff --git a/phpseclib/Net/SSH1.php b/phpseclib/Net/SSH1.php index b6a5e652..6b1f504e 100644 --- a/phpseclib/Net/SSH1.php +++ b/phpseclib/Net/SSH1.php @@ -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); } } } diff --git a/phpseclib/Net/SSH2.php b/phpseclib/Net/SSH2.php index 7ca86f43..bdee4222 100644 --- a/phpseclib/Net/SSH2.php +++ b/phpseclib/Net/SSH2.php @@ -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); } } } \ No newline at end of file