#44605 [Asn->Csd]: stream_select() does not work with fopen("php://output")
| From: | kalle@php.net | Date: | Wed, 13 Jan 2010 03:04:14 +0000 |
| Subject: | #44605 [Asn->Csd]: stream_select() does not work with fopen("php://output") | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-3688@lists.php.net to get a copy of this message | ||
ID: 44605
Updated by: kalle@php.net
Reported By: jc_mammana at hotmail dot com
-Status: Assigned
+Status: Closed
Bug Type: Documentation problem
Operating System: Win32
PHP Version: 5.2.5
Assigned To: kalle
New Comment:
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.
Thank you for the report, and for helping us make our documentation
better.
Previous Comments:
------------------------------------------------------------------------
[2010-01-13 03:04:11] svn@php.net
Automatic comment from SVN on behalf of kalle
Revision: http://svn.php.net/viewvc/?view=revision&revision=293482
Log: Fixed bug #44605 (stream_select() does not work with
fopen("php://output"))
------------------------------------------------------------------------
[2008-04-02 09:39:32] jc_mammana at hotmail dot com
I understand the difference between php://output and php://stdout (or
STDOUT).
In case of php is used as webserver module, we have to use
"php://output" and there is no way to know if the client has received
the buffer.
connection_status() is able to tell us the TCP connection state but
there is no solution to get/set this TCP timeout.
------------------------------------------------------------------------
[2008-04-02 09:27:25] jani@php.net
And as php://output is special, of course stream_select() does not work
with it.
------------------------------------------------------------------------
[2008-04-02 09:22:50] jani@php.net
And of course I forgot that stdout != php://output :)
------------------------------------------------------------------------
[2008-04-02 09:18:02] jani@php.net
It works fine with the "stock" STDOUT but not when you open the thing
"manually". This works (or at least does not give me any errors :)
<?php
$sw = array(STDOUT);
$sr = $se = NULL;
$r = stream_select($sr, $sw, $se, 3);
fwrite(STDOUT, "hello php world!" );
flush();
?>
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/44605
--
Edit this bug report at http://bugs.php.net/?id=44605&edit=1