php.net |  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
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.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: christoph dot hintermueller at psi dot ch
New email:
PHP Version: OS:

 

 [2008-09-10 06:35 UTC] christoph dot hintermueller at psi dot ch
Description:
------------
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.  


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-09-11 01:48 UTC] jon@php.net
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] jon@php.net
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 pecl.php.net.

In case this was a pecl.php.net 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-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 09:01:27 2024 UTC