From c8327bdc857ea26ec576d5c5d1070dcfd815c033 Mon Sep 17 00:00:00 2001 From: Nathan Gass Date: Wed, 22 Jun 2022 10:36:44 +0200 Subject: ED output to stderror if IT_ED_STDERR is set --- auto_prepend.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'auto_prepend.php') diff --git a/auto_prepend.php b/auto_prepend.php index 528769f..19108fb 100644 --- a/auto_prepend.php +++ b/auto_prepend.php @@ -16,7 +16,7 @@ function D(...$args) function ED(...$args) { it_debug::setup(); - echo it_debug::dump($args); + it_debug::echo($args); return $args[0]; } @@ -33,7 +33,7 @@ function EDC($var, ...$args) if ($args) { it_debug::setup(); - echo it_debug::dump($args); + it_debug::echo($args); } if (!$result || $result === true) # Compatibility with old map relying on 0|1 @@ -51,7 +51,8 @@ function EDX(...$args) if ($_SERVER['REMOTE_ADDR'] && !headers_sent()) header("Content-Type: text/html"); # Not going to be e.g. a valid gif anyway - exit(it_debug::dump($args)); + it_debug::echo($args); + exit(); } -- cgit v1.2.3