Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:13320 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 1766 invoked by uid 1010); 13 Oct 2004 13:58:58 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 1710 invoked from network); 13 Oct 2004 13:58:56 -0000 Received: from unknown (HELO t0x.net) (195.68.251.133) by pb1.pair.com with SMTP; 13 Oct 2004 13:58:56 -0000 Received: from v0mix (v0mix.pendragon.gentilly.esds.com [192.168.2.55]) (authenticated bits=0) by t0x.net (8.13.1/8.13.1/Debian-15) with ESMTP id i9DDwlMn031566 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Wed, 13 Oct 2004 15:58:48 +0200 Message-ID: <019701c4b12c$c356a790$3702a8c0@stouen.esds.com> To: "Wez Furlong" Cc: References: <416C7873.9070602@t0x.net> <20041013014320.47616.qmail@pb1.pair.com> <00b101c4b10a$66cd0cc0$3702a8c0@stouen.esds.com> Date: Wed, 13 Oct 2004 15:58:46 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2720.3000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Subject: Re: [PATCH] new function stream_socket_create_pair From: six@t0x.net ("Vincent NEGRIER") 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" Newsgroups: php.internals To: 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