Bug #68334 [Opn->Nab]: Log server responses to stdout instead of stderr

From: Date: Mon, 18 Oct 2021 15:42:35 +0000
Subject: Bug #68334 [Opn->Nab]: Log server responses to stdout instead of stderr
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-237269@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=68334&edit=1

 ID:                 68334
 Updated by:         cmb@php.net
 Reported by:        magnus dot hellman at gmail dot com
 Summary:            Log server responses to stdout instead of stderr
-Status:             Open
+Status:             Not a bug
 Type:               Bug
 Package:            Built-in web server
 Operating System:   Linux
 PHP Version:        5.6.2
-Assigned To:        
+Assigned To:        cmb
 Block user comment: N
 Private report:     N

 New Comment:

> Server responses are sent to stderr. They are not errors.

Right, but they are not the main output, but rather diagnostics,
and so it's fine to write them to stderr.


Previous Comments:
------------------------------------------------------------------------
[2014-10-31 15:30:53] magnus dot hellman at gmail dot com

Description:
------------
Server responses are sent to stderr. They are not errors.

Test script:
---------------
touch index.php
php -S localhost:8001 > /dev/null
curl localhost:8001

Expected result:
----------------
Should be empty

Actual result:
--------------
[Fri Oct 31 16:18:01 2014] 127.0.0.1:40507 [200]: /


------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=68334&edit=1


Thread (2 messages)

« previous php.bugs (#237269) next »