Ignore functions in Min_Driver
This commit is contained in:
parent
f09d26a51d
commit
33f0023d37
|
@ -336,7 +336,7 @@ if ($_SERVER["argv"][1]) {
|
||||||
|
|
||||||
// check function definition in drivers
|
// check function definition in drivers
|
||||||
$file = file_get_contents(dirname(__FILE__) . "/adminer/drivers/mysql.inc.php");
|
$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)
|
preg_match_all('~\\bfunction ([^(]+)~', $file, $matches); //! respect context (extension, class)
|
||||||
$functions = array_combine($matches[1], $matches[0]);
|
$functions = array_combine($matches[1], $matches[0]);
|
||||||
//! do not warn about functions without declared support()
|
//! do not warn about functions without declared support()
|
||||||
|
|
Loading…
Reference in a new issue