Cover unused and dead code in index.php
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@519 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
parent
3cd113fa4d
commit
541a2e10d4
|
@ -25,6 +25,8 @@ if (!extension_loaded("xdebug")) {
|
||||||
|
|
||||||
if ($_GET["start"]) {
|
if ($_GET["start"]) {
|
||||||
$_SESSION["coverage"] = array();
|
$_SESSION["coverage"] = array();
|
||||||
|
xdebug_start_code_coverage(XDEBUG_CC_UNUSED | XDEBUG_CC_DEAD_CODE);
|
||||||
|
include "./index.php";
|
||||||
header("Location: .");
|
header("Location: .");
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,6 +24,9 @@ if (isset($_SESSION["coverage"])) {
|
||||||
}
|
}
|
||||||
xdebug_start_code_coverage(XDEBUG_CC_UNUSED | XDEBUG_CC_DEAD_CODE);
|
xdebug_start_code_coverage(XDEBUG_CC_UNUSED | XDEBUG_CC_DEAD_CODE);
|
||||||
register_shutdown_function('save_coverage');
|
register_shutdown_function('save_coverage');
|
||||||
|
if ($_GET["start"]) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (get_magic_quotes_gpc()) {
|
if (get_magic_quotes_gpc()) {
|
||||||
$process = array(&$_GET, &$_POST);
|
$process = array(&$_GET, &$_POST);
|
||||||
|
|
Loading…
Reference in a new issue