Yup, while looking at the code I got the idea, letting the last two parameters be optional and substitute them with NULL when msising, too.
On Fri, Oct 05, 2001 at 03:04:22PM -0400, J Smith wrote : > > Even better. How about making the usec parameter optional in > socket_select(), and if the sec parameter is NULL, pass NULL to select() > instead of tv? That would make the syntax of select() with a NULL timeout > pretty much the same as socket_select() with a NULL timeout, minus the > first maxfd parameter in select() of course. > > J > > > Markus Fischer wrote: > > > On Fri, Oct 05, 2001 at 06:38:41PM -0000, [EMAIL PROTECTED] wrote : > >> Unfortunately, at the same time, this creates an > >> incompatibility between socket_select() and system > >> select(), since socket_select() will no longer produce the > >> same results as calling select() with tv_sec = -1 and > >> tv_usec = -1, but I don't think that's much of a problem. > > > > I think it should be perfectly valid to pass NULL and detect > > this in socket_select() so sec/user still can be -1. Lets see > > what others think. > > > > - Markus > > > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Markus Fischer, http://guru.josefine.at/~mfischer/ EMail: [EMAIL PROTECTED] PGP Public Key: http://guru.josefine.at/~mfischer/C2272BD0.asc PGP Fingerprint: D3B0 DD4F E12B F911 3CE1 C2B5 D674 B445 C227 2BD0 -All your scripts are belong to Zend- -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]