Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:3732 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 98629 invoked from network); 5 Aug 2003 12:32:55 -0000 Received: from unknown (HELO netphobia.fi) (213.243.181.8) by pb1.pair.com with SMTP; 5 Aug 2003 12:32:55 -0000 Received: from localhost (jani@localhost) by netphobia.fi (8.11.6/8.11.6) with ESMTP id h75CWsP13039; Tue, 5 Aug 2003 15:32:54 +0300 X-Authentication-Warning: netphobia.fi: jani owned process doing -bs Date: Tue, 5 Aug 2003 15:32:54 +0300 (EEST) Sender: jani@netphobia.fi Reply-To: Jani Taskinen To: Stefan Walk cc: internals@lists.php.net In-Reply-To: <20030805071448.GB29823@prp0.prp.physik.tu-darmstadt.de> Message-ID: References: <20030805071448.GB29823@prp0.prp.physik.tu-darmstadt.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [PHP-DEV] [PATCH] Repost: html_errors more readable From: sniper@iki.fi (Jani Taskinen) Why don't you just use the existing ini options: ; String to output before an error message. ;error_prepend_string = "" ; String to output after an error message. ;error_append_string = "" ?? --Jani On Tue, 5 Aug 2003, Stefan Walk wrote: >Hi, > >A while ago I proposed a patch that improved html_errors, but i got no >response from that, so i repost an improved version... > >The patch changes they way errors are displayed: >1) They are readable. > The current version prints in black with no background at all, > sometimes leading to black error messages on dark backgrounds - not > very readable. Additionally, they have a fixed font size so they > don't appear in a 4px font somewhere. >2) They are colorized. > Notices, warnings, fatal errors and other errors get distinct colors > for a better quick overview. >3) They look better ;) > It uses CSS to format the error message nicely. > >The colors used are changeable by php.ini directives. > >Since many people just debug in their browser without using own >error_handlers or append/prepend_strings, i think this is a nice >addition that makes php more user-friendly. > >An example of how this looks can be found at: >http://prp0.prp.physik.tu-darmstadt.de/~swalk/errors.htm > >Regards >Stefan > -- https://www.paypal.com/xclick/business=sniper@php.net&no_note=1&tax=0¤cy_code=EUR