Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:13326 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 41412 invoked by uid 1010); 13 Oct 2004 15:47:54 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 39698 invoked from network); 13 Oct 2004 15:47:44 -0000 Received: from unknown (HELO mproxy.gmail.com) (216.239.56.246) by pb1.pair.com with SMTP; 13 Oct 2004 15:47:44 -0000 Received: by mproxy.gmail.com with SMTP id w67so102852cwb for ; Wed, 13 Oct 2004 08:47:40 -0700 (PDT) Received: by 10.11.119.24 with SMTP id r24mr187951cwc; Wed, 13 Oct 2004 08:47:40 -0700 (PDT) Received: by 10.11.117.13 with HTTP; Wed, 13 Oct 2004 08:47:40 -0700 (PDT) Message-ID: <4e89b4260410130847412e86d@mail.gmail.com> Date: Wed, 13 Oct 2004 16:47:40 +0100 Reply-To: Wez Furlong To: Vincent NEGRIER Cc: internals@lists.php.net In-Reply-To: <019701c4b12c$c356a790$3702a8c0@stouen.esds.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <416C7873.9070602@t0x.net> <20041013014320.47616.qmail@pb1.pair.com> <00b101c4b10a$66cd0cc0$3702a8c0@stouen.esds.com> <019701c4b12c$c356a790$3702a8c0@stouen.esds.com> Subject: Re: [PATCH] new function stream_socket_create_pair From: kingwez@gmail.com (Wez Furlong) I wouldn't bother checking against known types; let sockpair() handle that. It is possible that someone might want/need to use some other value which we haven't thought of, or are even aware of. --Wez. On Wed, 13 Oct 2004 15:58:46 +0200, Vincent NEGRIER wrote: > 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 :)