From: skodak Date: Thu, 1 May 2008 21:19:05 +0000 (+0000) Subject: MDL-14617 removed PHP4 compatibility error_get_last() X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=6dd038e63917ea88e61ca9400d91a7730dae9f01;p=moodle.git MDL-14617 removed PHP4 compatibility error_get_last() --- diff --git a/lib/weblib.php b/lib/weblib.php index 75fc71ebe6..e61ed3f48d 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -6001,19 +6001,6 @@ function notice_yesno ($message, $linkyes, $linkno, $optionsyes=NULL, $optionsno print_box_end(); } -/** - * Provide an definition of error_get_last for PHP before 5.2.0. This simply - * returns NULL, since there is not way to get the right answer. - */ -if (!function_exists('error_get_last')) { - // the eval is needed to prevent PHP 5.2+ from getting a parse error! - eval(' - function error_get_last() { - return NULL; - } - '); -} - /** * Redirects the user to another page, after printing a notice *