Re: RFC: built-in web server in CLI.
| From: | David Muir | Date: | Wed, 20 Apr 2011 02:29:14 +0000 |
| Subject: | Re: RFC: built-in web server in CLI. | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-51941@lists.php.net to get a copy of this message | ||
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 <dmgx.michael@gmail.com>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 <mike@php.net> 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
>>>
>>>