Bug #68334 [Opn->Nab]: Log server responses to stdout instead of stderr
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)