Re: Bug #13566: BUG FIX? for ext/sockets

From: Date: Fri, 05 Oct 2001 19:13:20 +0000
Subject: Re: Bug #13566: BUG FIX? for ext/sockets
References: 1 2 3  Groups: php.dev 
Request: Send a blank email to php-dev+get-67371@lists.php.net to get a copy of this message
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, jsmith@tutorbuddy.com 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: php-dev-unsubscribe@lists.php.net > For additional commands, e-mail: php-dev-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net -- Markus Fischer, http://guru.josefine.at/~mfischer/ EMail: mfischer@guru.josefine.at 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-

« previous php.dev (#67371) next »