Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:53644 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 8026 invoked from network); 28 Jun 2011 23:31:47 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Jun 2011 23:31:47 -0000 Authentication-Results: pb1.pair.com header.from=christopher.jones@oracle.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=christopher.jones@oracle.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain oracle.com from 148.87.113.121 cause and error) X-PHP-List-Original-Sender: christopher.jones@oracle.com X-Host-Fingerprint: 148.87.113.121 rcsinet10.oracle.com Received: from [148.87.113.121] ([148.87.113.121:31194] helo=rcsinet10.oracle.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 28/1C-43855-1646A0E4 for ; Tue, 28 Jun 2011 19:31:46 -0400 Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by rcsinet10.oracle.com (Switch-3.4.4/Switch-3.4.2) with ESMTP id p5SNVekM027508 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 28 Jun 2011 23:31:42 GMT Received: from acsmt357.oracle.com (acsmt357.oracle.com [141.146.40.157]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id p5SNVeTH004473 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 28 Jun 2011 23:31:40 GMT Received: from abhmt101.oracle.com (abhmt101.oracle.com [141.146.116.53]) by acsmt357.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id p5SNVY3K002460 for ; Tue, 28 Jun 2011 18:31:34 -0500 Received: from [130.35.68.31] (/130.35.68.31) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 28 Jun 2011 16:31:34 -0700 Message-ID: <4E0A6456.70600@oracle.com> Date: Tue, 28 Jun 2011 16:31:34 -0700 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101207 Lightning/1.0b2 Thunderbird/3.1.7 MIME-Version: 1.0 To: internals@lists.php.net References: <1309303149.2331.119.camel@guybrush> In-Reply-To: <1309303149.2331.119.camel@guybrush> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Source-IP: acsinet22.oracle.com [141.146.126.238] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090201.4E0A645E.004F:SCFMA922111,ss=1,re=-4.000,fgs=0 Subject: Re: [PHP-DEV] [PATCH] Friendly log messages for CLI server From: christopher.jones@oracle.com (Christopher Jones) On 06/28/2011 04:19 PM, Johannes Schlüter wrote: > On Tue, 2011-06-28 at 23:37 +0100, Arpad Ray wrote: >> - Colours messages according to their response code (success=green, >> client error=yellow, server error=red) > > I would prefer if this would be an ini option (if (cli_web_server.color > && isatty) color = true) default can be on, but I've seen cases where > such magic failed and created hard-to use results (due to control > sequences in log files or such). > > johannes > > > I'm -1 on the color coding for a few reasons: (i) it can be done outside of PHP (ii) forcing a particular color coding is problematic for many users (iii) the escape codes are not portable. The other items in the patch have merit. If you're looking at the web server code, perhaps you can sort out the issues with subdirectories and include()? Moriyoshi has gone quiet on it. Chris -- Email: christopher.jones@oracle.com Tel: +1 650 506 8630 Blog: http://blogs.oracle.com/opal/