diff options
author | Christian Schneider | 2008-09-10 18:54:34 +0000 |
---|---|---|
committer | Christian Schneider | 2008-09-10 18:54:34 +0000 |
commit | e523af554f89bef2b11f95433e7a561581d2614b (patch) | |
tree | 2aca3af6abd66cc457c336427aaf1f616f5c13e0 /it_debug.class | |
parent | 2b43b155e9274077462ae382bc13d9c9ae371a10 (diff) | |
download | itools-e523af554f89bef2b11f95433e7a561581d2614b.tar.gz itools-e523af554f89bef2b11f95433e7a561581d2614b.tar.bz2 itools-e523af554f89bef2b11f95433e7a561581d2614b.zip |
Fix warning if no paramenter names could be found and fix line offset for cli
Diffstat (limited to 'it_debug.class')
-rw-r--r-- | it_debug.class | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/it_debug.class b/it_debug.class index 9cafd3b..95a414a 100644 --- a/it_debug.class +++ b/it_debug.class @@ -66,9 +66,6 @@ function srcline($stackoffs = 0) if (!isset($GLOBALS['it_debug::dump source'][$file])) $GLOBALS['it_debug::dump source'][$file] = file($file); - if (!$_SERVER['REMOTE_ADDR'] && substr($GLOBALS['it_debug::dump source'][$file][0], 0, 2) == "#!") - $line++; - return $GLOBALS['it_debug::dump source'][$file][$line-1]; } @@ -100,6 +97,7 @@ function dump($args) $paramtokens = token_get_all("<?php $paramlist"); array_shift($paramtokens); $param = ""; + $argnames = array(); foreach ($paramtokens as $token) { if ($token == "(") |