Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:51941 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 35740 invoked from network); 20 Apr 2011 02:29:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Apr 2011 02:29:32 -0000 Authentication-Results: pb1.pair.com header.from=davidkmuir@gmail.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=davidkmuir@gmail.com; spf=unknown; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain gmail.com does not designate 208.113.200.5 as permitted sender) X-PHP-List-Original-Sender: davidkmuir@gmail.com X-Host-Fingerprint: 208.113.200.5 caibbdcaaaaf.dreamhost.com Windows 98 (1) Received: from [208.113.200.5] ([208.113.200.5:58711] helo=homiemail-a50.g.dreamhost.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8D/13-04663-8054EAD4 for ; Tue, 19 Apr 2011 22:29:30 -0400 Received: from homiemail-a50.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a50.g.dreamhost.com (Postfix) with ESMTP id 600D26F8058 for ; Tue, 19 Apr 2011 19:29:26 -0700 (PDT) Received: from [192.168.3.3] (softbank221040106178.bbtec.net [221.40.106.178]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: david@thefourstooges.com) by homiemail-a50.g.dreamhost.com (Postfix) with ESMTPSA id 04D806F8057 for ; Tue, 19 Apr 2011 19:29:25 -0700 (PDT) Message-ID: <4DAE44FA.6020305@gmail.com> Date: Wed, 20 Apr 2011 11:29:14 +0900 User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.14) Gecko/20110223 Lightning/1.0b2 Thunderbird/3.1.8 MIME-Version: 1.0 To: internals@lists.php.net References: <4D704BA5.5080402@oracle.com> <14.AE.01409.86D7DAD4@pb1.pair.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] RFC: built-in web server in CLI. From: davidkmuir@gmail.com (David Muir) I'm not sure if this is needed when there are already solutions for this. eg, syslog, error_log, or other userland solutions like Zend_Log, sfLogger, etc. Cheers, David On 19/04/11 23:44, Michael Morris wrote: > Pardon me for following up my own post, but there is room for a range of > functions here other than trace that could send their output to the command > line where the server was started. > > watch ($var) -> $var is sent to the console on the line this statement is > made with the statment "now watching 'var'.. init value "x", and then each > time it changes it is updated in the console. > > traceStack() -> as trace, but the current stack is reported. > traceAll() Return all variables in local scope and the current stack. > stop() Halt execution as die or exit, unlike them it's arguments are sent to > console instead of browser. > > On Tue, Apr 19, 2011 at 10:35 AM, Michael Morris wrote: > >> Since the goal of this is debugging might I suggest borrowing a statement >> from the Adobe Flash environment: trace. >> >> Trace sends output to the debug console. If given a variable it would >> format it as print_r currently does. When encountered by PHP in other modes >> it would be silently ignored. >> >> Thoughts? >> >> On Tue, Apr 19, 2011 at 8:17 AM, Michael Wallner wrote: >> >>> On 04/17/2011 01:17 AM, Philip Olson wrote: >>> >>>> Greetings Moriyoshi and all, >>>> >>>> Are people still thinking about this? And how about applying the >>>> current/revised patch to trunk thus making it easier to play with and >>>> break, but not freeze its features/API yet. >>>> >>>> Also the wiki is up again so: >>>> >>>> - RFC: https://wiki.php.net/rfc/builtinwebserver >>>> - Patch is here: http://gist.github.com/835698 >>>> >>> The php_http_* "namespace" is actually already used by pecl_http? >>> >>> Regards, >>> Mike >>> >>> >>> -- >>> PHP Internals - PHP Runtime Development Mailing List >>> To unsubscribe, visit: http://www.php.net/unsub.php >>> >>>