Bug #71056 [Opn->Csd]: phpdbg -qrr merges stderr to stdout
| From: | bwoebi@php.net | Date: | Thu, 10 Dec 2015 00:29:19 +0000 |
| Subject: | Bug #71056 [Opn->Csd]: phpdbg -qrr merges stderr to stdout | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-197755@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=71056&edit=1
ID: 71056
Updated by: bwoebi@php.net
Reported by: mikulas dot dite at gmail dot com
Summary: phpdbg -qrr merges stderr to stdout
-Status: Open
+Status: Closed
Type: Bug
Package: phpdbg
Operating System: OS X 10.11.1 (15B42)
PHP Version: 7.0.0
-Assigned To:
+Assigned To: bwoebi
Block user comment: N
Private report: N
New Comment:
I already fixed this in PHP 7.0.1, two weeks ago; see http://git.php.net/?p=php-src.git;a=commitdiff;h=c1189eccae3c555ac5a8610110bb3edb80998d2c
Previous Comments:
------------------------------------------------------------------------
[2015-12-08 10:51:10] mikulas dot dite at gmail dot com
Description:
------------
Noninteractive phpdbg mode should be as close to php interpreter as possible. Currently it merges
all output from executed process into stdout. This is correct for interactive mode, but undesirable
in -qrr (non-interactive) mode.
Test script:
---------------
<?php
$err = fopen('php://stderr', 'w+');
$out = fopen('php://stdout', 'w+');
fwrite($out, "stdout a\n");
fwrite($err, "stderr a\n");
fwrite($out, "stdout b\n");
Expected result:
----------------
phpdbg -qrr test.php > /dev/null
should output
stderr a
phpdbg -qrr test.php 2> /dev/null
should output
stdout a
stdout b
Actual result:
--------------
phpdbg -qrr test.php > /dev/null
outputs nothing
phpdbg -qrr test.php 2> /dev/null
should output
stdout a
stderr a
stdout b
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=71056&edit=1