Ask a Question related to PHP Development, Design and Development.
-
sniper@php.net #1
#25933 [Opn->Bgs]: stream_select
ID: 25933
Updated by: [email]sniper@php.net[/email]
Reported By: flape at pobox dot sk
-Status: Open
+Status: Bogus
Bug Type: Filesystem function related
Operating System: Win2K
PHP Version: 4.3.3
New Comment:
What use would this be with file handles? Not bug.
Previous Comments:
------------------------------------------------------------------------
[2003-10-21 08:30:43] flape at pobox dot sk
Description:
------------
stream_select aplied on a file handle - that is told to be a stream too
- emiadelly returns.
Reproduce code:
---------------
<?
$fh = fopen('debug.txt','r+');
stream_set_blocking($fh ,false);
$ra = array($fh);
while(true){
while(0 == stream_select($ra,$w = NULL,$e = NULL,20))
$text = fgets($fh,10);
echo $text;
flush();
ob_flush();
}
fclose($fh);
?>
Expected result:
----------------
It should prit the context of debug.txt and everithing what was added
to that file after starting the script.
Actual result:
--------------
Warning: stream_select(): unable to select [0]: No error in
c:\temp\htdocs\debug.php on line 7
------------------------------------------------------------------------
--
Edit this bug report at [url]http://bugs.php.net/?id=25933&edit=1[/url]
sniper@php.net Guest
-
#25933 [Opn->Asn]: stream_select
ID: 25933 Updated by: sniper@php.net Reported By: flape at pobox dot sk -Status: Open +Status: ... -
#25933 [Fbk->Opn]: stream_select
ID: 25933 User updated by: flape at pobox dot sk Reported By: flape at pobox dot sk -Status: Feedback +Status: ... -
#25933 [Bgs->Fbk]: stream_select
ID: 25933 Updated by: wez@php.net Reported By: flape at pobox dot sk -Status: Bogus +Status: ... -
#25933 [Bgs]: stream_select
ID: 25933 User updated by: flape at pobox dot sk Reported By: flape at pobox dot sk Status: Bogus Bug Type: ... -
#25933 [NEW]: stream_select
From: flape at pobox dot sk Operating system: Win2K PHP version: 4.3.3 PHP Bug Type: Filesystem function related Bug...



Reply With Quote

