Re: [PATCH] new function stream_socket_create_pair

From: Date: Wed, 13 Oct 2004 13:58:46 +0000
Subject: Re: [PATCH] new function stream_socket_create_pair
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-13320@lists.php.net to get a copy of this message
Here is an updated version of the patch : http://si.kz/~six/stream_socket_pair.diff It now registers STREAM_AF_* and STREAM_SOCK_* long constants, checks the domain and type against known types and passes the array of created streams as return value instead of a byref param... and the diff is against today's CVS this time :) regards, Vincent ----- Original Message ----- From: "Vincent Negrier" <six@t0x.net> Newsgroups: php.internals To: <internals@lists.php.net> Sent: Wednesday, October 13, 2004 11:52 AM Subject: Re: [PATCH] new function stream_socket_create_pair > > > the patch is here : > http://si.kz/~six/stream_socket_create_pair_patch.tgz > > > > > To add to Wez's comments, I'd rather see it return an array of socket > > streams (or FALSE on failure), rather than return true and tuck the > streams > > into a by-ref parameter. > > It would look simpler, but on the other hand it would break consistency with > the behavior of socket_create_pair() and the sockpair() syscall ... > > If the above is not a problem for anyone i can rewrite it to return a > streams array (or FALSE), without the byref param. > > regards, > Vincent

« previous php.internals (#13320) next »