Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:51944 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 86967 invoked from network); 20 Apr 2011 12:35:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Apr 2011 12:35:44 -0000 Authentication-Results: pb1.pair.com smtp.mail=j.boggiano@seld.be; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=j.boggiano@seld.be; sender-id=pass Received-SPF: pass (pb1.pair.com: domain seld.be designates 74.125.82.54 as permitted sender) X-PHP-List-Original-Sender: j.boggiano@seld.be X-Host-Fingerprint: 74.125.82.54 mail-ww0-f54.google.com Received: from [74.125.82.54] ([74.125.82.54:57583] helo=mail-ww0-f54.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 65/01-15607-E13DEAD4 for ; Wed, 20 Apr 2011 08:35:44 -0400 Received: by wwd20 with SMTP id 20so781982wwd.11 for ; Wed, 20 Apr 2011 05:35:40 -0700 (PDT) Received: by 10.227.149.73 with SMTP id s9mr1759385wbv.156.1303302940094; Wed, 20 Apr 2011 05:35:40 -0700 (PDT) Received: from [192.168.80.137] (77-58-253-248.dclient.hispeed.ch [77.58.253.248]) by mx.google.com with ESMTPS id bd8sm540148wbb.65.2011.04.20.05.35.36 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 20 Apr 2011 05:35:37 -0700 (PDT) Message-ID: <4DAED318.1020501@seld.be> Date: Wed, 20 Apr 2011 14:35:36 +0200 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.12) Gecko/20101027 Lightning/1.0b2 Thunderbird/3.1.6 MIME-Version: 1.0 To: internals@lists.php.net References: <4D704BA5.5080402@oracle.com> <14.AE.01409.86D7DAD4@pb1.pair.com> <4DAE44FA.6020305@gmail.com> <4DAED086.7050209@schlueters.de> In-Reply-To: <4DAED086.7050209@schlueters.de> X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] RFC: built-in web server in CLI. From: j.boggiano@seld.be (Jordi Boggiano) On 20.04.2011 14:24, Johannes Schlüter wrote: > > > On 04/20/11 02:05 PM, Michael Morris wrote: >> This takes advantage of the fact that this CLI client, which >> will*not* be >> running as a daemon, will have an open terminal window for it for as >> long as >> it persists until the process is stopped with CTRL-C. Sending output to >> that terminal window would be*very* useful in my opinion, hence the call >> for trace. Essentially, trace is "echo" to that terminal window, or >> "print_r" to that window if it is given an object or array. > > error_log() output should go there by default. (didn't check the patch) > you can route everything there. I don't think it's good to add tons of > extra functions for that. I think the difference with the trace() approach is that it could be a NOOP by default, and just print to console when running the php httpd, so you could theoretically leave debug output in, and I will leave everyone the liberty to interpret that as a good or bad idea. Cheers -- Jordi Boggiano @seldaek :: http://seld.be/