diff options
author | Christian Helbling | 2018-09-21 12:07:06 +0200 |
---|---|---|
committer | Christian Helbling | 2018-09-21 12:11:15 +0200 |
commit | c01effea432fdb553f5399474f719f3b83f6123e (patch) | |
tree | c110d3eb59fb0521c266c6fc4e3f684e986ffc42 | |
parent | 709aad4a5ce2c9ee990313536f9dea0872592c5f (diff) | |
download | itools-c01effea432fdb553f5399474f719f3b83f6123e.tar.gz itools-c01effea432fdb553f5399474f719f3b83f6123e.tar.bz2 itools-c01effea432fdb553f5399474f719f3b83f6123e.zip |
keep debug parameters set via getopt in subrequests
-rw-r--r-- | it.class | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -908,6 +908,9 @@ static function getopt($usage, $p = array()) $ultravar = preg_split('/[-=:]/', $ultrad, 2); $GLOBALS["debug_$ultravar[0]"] = isset($ultravar[1]) ? $ultravar[1] : 1; } + + # keep debug parameters in subrequests + $_SERVER['ULTRAHOSTNAME'] = it::replace(['^\.+' => '', '([^.])\.*$' => '\1.'], $result['debug']) . $_SERVER['ULTRAHOSTNAME']; } $GLOBALS['it_stdin']['args'] = $result['args'] ? $result['args'] : array("-"); |