Req #53424 [Bgs]: passthru() and STDERR

From: Date: Tue, 30 Nov 2010 12:53:48 +0000
Subject: Req #53424 [Bgs]: passthru() and STDERR
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-156586@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=53424&edit=1

 ID:                 53424
 Updated by:         dtajchreber@php.net
 Reported by:        myselfasunder at gmail dot com
 Summary:            passthru() and STDERR
 Status:             Bogus
 Type:               Feature/Change Request
 Package:            Program Execution
 Operating System:   Windows 7
 PHP Version:        5.2.14
 Block user comment: N
 Private report:     N

 New Comment:

Windows also supports redirection: 

http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-
us/redirection.mspx?mfr=true


Previous Comments:
------------------------------------------------------------------------
[2010-11-30 09:05:29] jani@php.net

See bug #41874.

------------------------------------------------------------------------
[2010-11-30 07:29:12] myselfasunder at gmail dot com

Please re-read the original ticket:

"Please also display STDERR output. This is a request specific for
Windows. Obviously this isn't a problem under Linux."

You've provided the well-known Unix/Linux solution. This solution is not
supported under Windows.

Please re-open the ticket, even if you can't provide a solution at this
time. This will save me the effort of opening another one.


Dustin

------------------------------------------------------------------------
[2010-11-30 06:28:44] dtajchreber@php.net

passthru("$cmd 2>&1");

------------------------------------------------------------------------
[2010-11-29 21:26:52] myselfasunder at gmail dot com

Description:
------------
Please also display STDERR output. This is a request specific for
Windows. Obviously this isn't a problem under Linux.

Test script:
---------------
passthru('<command that only outputs STDERR>');


Expected result:
----------------
I expect everything from STDOUT and STDERR to be displayed.

Actual result:
--------------
Will output nothing (expect maybe a little whitespace).


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



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


Thread (9 messages)

« previous php.bugs (#156586) next »