View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
147 | Exception_DefaultHandler | All | public | 16 Jan 2009 10:30 | 28 Jun 2009 21:25 |
Reporter | mrosenquist | Assigned To | timj | ||
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | fixed | ||
Target Version | 0.7.0 | Fixed in Version | 0.7.0 | ||
Summary | 147: Output errors on command line to stderr instead of stdout | ||||
Description | Make errors that occur handled on the cmdline output to STDERR | ||||
Tags | No 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); } } | ||||
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 |