]> git.joonet.de Git - adminer.git/commitdiff
Ignore functions in Min_Driver
authorJakub Vrana <jakub@vrana.cz>
Tue, 6 Feb 2018 15:32:56 +0000 (16:32 +0100)
committerJakub Vrana <jakub@vrana.cz>
Tue, 6 Feb 2018 15:32:56 +0000 (16:32 +0100)
compile.php

index 5b74e9b382e44afc2cd206a9302deff9aa9300b5..6dc48f4905548570608f2c8f9090bc174758bced 100755 (executable)
@@ -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()