Bug #71056 [NEW]: phpdbg -qrr merges stderr to stdout

From: Date: Tue, 08 Dec 2015 10:51:11 +0000
Subject: Bug #71056 [NEW]: phpdbg -qrr merges stderr to stdout
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-197688@lists.php.net to get a copy of this message
From: mikulas dot dite at gmail dot com Operating system: OS X 10.11.1 (15B42) PHP version: 7.0.0 Package: phpdbg Bug Type: Bug Bug description:phpdbg -qrr merges stderr to stdout 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 bug report at https://bugs.php.net/bug.php?id=71056&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=71056&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=71056&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=71056&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=71056&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=71056&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=71056&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=71056&r=needscript Try newer version: https://bugs.php.net/fix.php?id=71056&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=71056&r=support Expected behavior: https://bugs.php.net/fix.php?id=71056&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=71056&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=71056&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=71056&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=71056&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=71056&r=dst IIS Stability: https://bugs.php.net/fix.php?id=71056&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=71056&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=71056&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=71056&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=71056&r=mysqlcfg

« previous php.bugs (#197688) next »