]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-14617 removed PHP4 compatibility error_get_last()
authorskodak <skodak>
Thu, 1 May 2008 21:19:05 +0000 (21:19 +0000)
committerskodak <skodak>
Thu, 1 May 2008 21:19:05 +0000 (21:19 +0000)
lib/weblib.php

index 75fc71ebe67838b760e04c1280b60c46d0780156..e61ed3f48da4ada1838d336a7eef1e59c87363b0 100644 (file)
@@ -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
  *