Hi. It's because of the following code found in the phpdigHttpVars function.
PHP Code:
if (!isset($httpvars[$varname])) {
if (!isset($GLOBALS[$varname])) {
// if there is no $_*['varname'] and no $GLOBALS['varname'] set to false value
$httpvars[$varname] = false;
}
else {
// if there is no $_*['varname'] but there is $GLOBALS['varname'] set to global value
$httpvars[$varname] = $GLOBALS[$varname];
}
}
When you pass search.php?test=test to the script, $GLOBALS['test'] is set.