From 33f0023d3701493e357f87ee95752482ab9da912 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Tue, 6 Feb 2018 16:32:56 +0100 Subject: [PATCH] Ignore functions in Min_Driver --- compile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compile.php b/compile.php index 5b74e9b3..6dc48f49 100755 --- a/compile.php +++ b/compile.php @@ -336,7 +336,7 @@ if ($_SERVER["argv"][1]) { // check function definition in drivers $file = file_get_contents(dirname(__FILE__) . "/adminer/drivers/mysql.inc.php"); -$file = preg_replace('~( *)class Min_Driver.*}~sU', '', $file); +$file = preg_replace('~class Min_Driver.*\n\t}~sU', '', $file); preg_match_all('~\\bfunction ([^(]+)~', $file, $matches); //! respect context (extension, class) $functions = array_combine($matches[1], $matches[0]); //! do not warn about functions without declared support()