ID:               35900
 Updated by:       [EMAIL PROTECTED]
 Reported By:      sqchen at citiz dot net
-Status:           Open
+Status:           Feedback
 Bug Type:         *General Issues
 Operating System: redhat 7.3
 PHP Version:      5.1.1
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php5.1-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.1-win32-latest.zip




Previous Comments:
------------------------------------------------------------------------

[2006-01-05 03:39:51] sqchen at citiz dot net

Description:
------------
int stream_select ( array &read, array &write, array &except, int
tv_sec [, int tv_usec] )


when tv_sec= -1, tv_usec=6000000, it should warning, not wait 5
seconds.

Reproduce code:
---------------
<?php
$read = array(STDIN);
if($num_changed_streams = stream_select($read, $write=NULL , $except =
NULL, -1,6000000))
{
        echo "Pass";
}
else
{
        echo "Fail";
}
?>


Expected result:
----------------
warning: Invalid argument (max_fd=0) 

Actual result:
--------------
wait 5 seconds for input


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=35900&edit=1

Reply via email to