View Issue Details

IDProjectCategoryView StatusLast Update
147Exception_DefaultHandlerAllpublic28 Jun 2009 21:25
Reportermrosenquist Assigned Totimj  
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
Target Version0.7.0Fixed in Version0.7.0 
Summary147: Output errors on command line to stderr instead of stdout
DescriptionMake errors that occur handled on the cmdline output to STDERR
TagsNo tags attached.
Attached Files
DefaultHandler.php.patch (607 bytes)   
--- DefaultHandler.php.orig	2009-01-16 10:27:04.000000000 +0000
+++ DefaultHandler.php	2009-01-16 10:31:21.000000000 +0000
@@ -166,8 +166,8 @@
 			echo $output = "<b>$errtype</b>: " . htmlspecialchars($errmsg, ENT_QUOTES) . " in <b>$filename</b> on line <b>$linenum</b><br />\n";
 			print "<pre style='text-align:left;'>" . nl2br(htmlspecialchars($backtrace, ENT_QUOTES)) . '</pre>';
 		} else {
-			print "$errtype: $errmsg in $filename on line $linenum\n\n";
-			print $backtrace;
+			$output = "$errtype: $errmsg in $filename on line $linenum\n\n" . $backtrace;
+			fwrite(STDERR, $output);
 		}
 	}
 	
DefaultHandler.php.patch (607 bytes)   

Activities

timj

10 Mar 2009 22:04

administrator   ~183

Fixed in SVN r1523

Issue History

Date Modified Username Field Change
16 Jan 2009 10:30 mrosenquist New Issue
16 Jan 2009 10:30 mrosenquist File Added: DefaultHandler.php.patch
10 Mar 2009 22:04 timj Note Added: 183
10 Mar 2009 22:04 timj Assigned To => timj
10 Mar 2009 22:04 timj Status new => resolved
10 Mar 2009 22:04 timj Resolution open => fixed
10 Mar 2009 22:04 timj Fixed in Version => 0.7.0
10 Mar 2009 22:04 timj Target Version => 0.7.0
10 Mar 2009 22:04 timj Summary Make errors that occur handled on the cmdline output to STDERR => Output errors on command line to stderr instead of stdout
28 Jun 2009 21:25 timj Status resolved => closed
14 Oct 2011 20:47 timj Category => All