From:             [EMAIL PROTECTED]
Operating system: FreeBSD 4.7-stable
PHP version:      4.3.0
PHP Bug Type:     Unknown/Other Function
Bug description:  stream_select is not consistant with socket_select

All references to stream_select (an otherwise un-documented function) say
that it is the same as socket_select.

With socket_select setting the 4th parameter (the timeout in seconds) to 0
would normaly make it wait for a change in the sockets forever(no
timeout).

However with stream_select, if you set the 4th parameter to 0,  it does
not wait at all, instead returning right away.  To create the desired
effect you must set it equal to NULL.
Workaround:
Set the 4th parameter (seconds) to NULL

To Fix:
change line line 789 in 
/ext/standard/file.c( as included in php 4.3.0 /* $Id: file.c,v 1.279.2.4
2002/12/26 22:36:21 wez Exp $ */) from:

        if (sec != NULL) {

to:

        if (sec != NULL && sec != 0) {

-- 
Edit bug report at http://bugs.php.net/?id=21330&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=21330&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=21330&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=21330&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=21330&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=21330&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=21330&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=21330&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=21330&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=21330&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=21330&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21330&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=21330&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=21330&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=21330&r=gnused

Reply via email to