From 6dd038e63917ea88e61ca9400d91a7730dae9f01 Mon Sep 17 00:00:00 2001 From: skodak Date: Thu, 1 May 2008 21:19:05 +0000 Subject: [PATCH] MDL-14617 removed PHP4 compatibility error_get_last() --- lib/weblib.php | 13 ------------- 1 file changed, 13 deletions(-) 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 * -- 2.39.5