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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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: Sun Sep 15 12:01:26 2024 UTC