|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #58340 link python stdout stderror to PHP:OUTPUT
Submitted: 2008-09-10 06:35 UTC Modified: 2008-10-05 22:41 UTC
From: christoph dot hintermueller at psi dot ch Assigned: jon (profile)
Status: Closed Package: python (PECL)
PHP Version: 5.1.2 OS: Linux SL5
Private report: No CVE-ID: None
 [2008-09-10 06:35 UTC] christoph dot hintermueller at psi dot ch
Our python modules write informal, warning and error messages 
to stdout stderr. Using them from within python requires that 
these messages appear on PHP:OUTPUT and can be captured by 
the standard output buffering mechanism of PHP.  


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2008-09-11 01:48 UTC]
Python's sys.stdout/sys.stderr streams should be using the same underlying STDOUT/STDERR file descriptors as PHP.

One option would be to add the ability to redirect Python's sys.stdout/sys.stderr streams to a unique PHP stream.  That would let the user capture output sent to python://stdout and python://stderr by registering a stream wrapper (via stream_wrapper_register).

What other options should I consider?
 [2008-10-05 22:41 UTC]
This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on

In case this was a website problem, the change will show
up on the website in short time.
Thank you for the report, and for helping us make PECL better.

PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Mon Nov 23 22:01:26 2020 UTC