com web/bugs: Remove unused errors handler function handle_pear_errors(): include/functions.php
| From: | Peter Kokot | Date: | Wed, 05 Dec 2018 01:48:41 +0000 |
| Subject: | com web/bugs: Remove unused errors handler function handle_pear_errors(): include/functions.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-27487@lists.php.net to get a copy of this message | ||
Commit: 26f5c264546ea0cb2dcbae96e763683005ec87a7
Author: Peter Kokot <peterkokot@gmail.com> Wed, 5 Dec 2018 02:48:41 +0100
Parents: 674023bd052665a400560415f1dbe22006844634
Branches: master
Link: http://git.php.net/?p=web/bugs.git;a=commitdiff;h=26f5c264546ea0cb2dcbae96e763683005ec87a7
Log:
Remove unused errors handler function handle_pear_errors()
Function handle_pear_errors() has been made obsolete via
23298a123688443276f60143c1261f85a85873fe
Changed paths:
M include/functions.php
Diff:
diff --git a/include/functions.php b/include/functions.php
index cb6d6aa..8138404 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -1885,21 +1885,6 @@ function get_ticket_links($text)
return $matches[1];
}
-function handle_pear_errors($error_obj)
-{
- error_log($error_obj->getMessage());
- response_header("Oops! We are sorry that you are unable to report an undocumented feature
today.");
-
- $error = "<p>Greetings! We are experiencing an error, and in the spirit of Open Source
would like you to fix it. ";
- $error .= "Or more likely, just wait and someone else will find and solve
this.</p>\n";
- $error .= "<p>It's our guess that the database is down. Argh!!!</p>\n";
-
- // FIXME: If logged in, show other stuff....
- response_footer($error);
- exit;
-}
-
-
/**
* Generates a random password
*/