php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #71056 phpdbg -qrr merges stderr to stdout
Submitted: 2015-12-08 10:51 UTC Modified: 2015-12-10 00:29 UTC
From: mikulas dot dite at gmail dot com Assigned: bwoebi (profile)
Status: Closed Package: phpdbg
PHP Version: 7.0.0 OS: OS X 10.11.1 (15B42)
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: mikulas dot dite at gmail dot com
New email:
PHP Version: OS:

 

 [2015-12-08 10:51 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-12-10 00:29 UTC] bwoebi@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: bwoebi
 [2015-12-10 00:29 UTC] bwoebi@php.net
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
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 15:01:28 2024 UTC