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:
jakubvrana 2008-10-03 16:32:11 +00:00
parent 3cd113fa4d
commit 541a2e10d4
2 changed files with 5 additions and 0 deletions

View file

@ -25,6 +25,8 @@ if (!extension_loaded("xdebug")) {
if ($_GET["start"]) {
$_SESSION["coverage"] = array();
xdebug_start_code_coverage(XDEBUG_CC_UNUSED | XDEBUG_CC_DEAD_CODE);
include "./index.php";
header("Location: .");
exit;
}

View file

@ -24,6 +24,9 @@ if (isset($_SESSION["coverage"])) {
}
xdebug_start_code_coverage(XDEBUG_CC_UNUSED | XDEBUG_CC_DEAD_CODE);
register_shutdown_function('save_coverage');
if ($_GET["start"]) {
return;
}
}
if (get_magic_quotes_gpc()) {
$process = array(&$_GET, &$_POST);