summaryrefslogtreecommitdiff
path: root/it_debug.class
diff options
context:
space:
mode:
Diffstat (limited to 'it_debug.class')
-rw-r--r--it_debug.class6
1 files changed, 3 insertions, 3 deletions
diff --git a/it_debug.class b/it_debug.class
index 4f38469..7324192 100644
--- a/it_debug.class
+++ b/it_debug.class
@@ -57,7 +57,7 @@ function debug($text, $level = 0)
* @param $stacksoffs go up an extra $stacksoffs levels
*/
-function srcline($stackoffs = 0)
+static function srcline($stackoffs = 0)
{
$stack = debug_backtrace(@constant('DEBUG_BACKTRACE_IGNORE_ARGS'));
$line = $stack[1 + $stackoffs]['line'];
@@ -78,7 +78,7 @@ function srcline($stackoffs = 0)
* @param Origargs Array containing original arguments do ED() etc
* @return String representation of dump
*/
-function dump($args)
+static function dump($args)
{
if (preg_match('/csv|txt|gif|jpg/', $_SERVER['PHP_SELF']) || preg_grep('#text/(calendar|css|javascript|json|plain|rfc822|xml)#', headers_list()))
$plain = 1;
@@ -172,7 +172,7 @@ function dump($args)
* @param $p['skiplevels'] number of stack levels to omit
* @param $p['skipfiles'] regular expression of filenames to omit
*/
-function backtrace($p = array())
+static function backtrace($p = array())
{
if (!is_array($p))
$p = array('skiplevels' => $p);