Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:31235 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 63109 invoked by uid 1010); 24 Jul 2007 11:36:44 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 63094 invoked from network); 24 Jul 2007 11:36:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Jul 2007 11:36:44 -0000 Authentication-Results: pb1.pair.com header.from=jani.taskinen@sci.fi; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=jani.taskinen@sci.fi; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain sci.fi from 63.208.196.171 cause and error) X-PHP-List-Original-Sender: jani.taskinen@sci.fi X-Host-Fingerprint: 63.208.196.171 outbound.mailhop.org FreeBSD 4.6-4.9 Received: from [63.208.196.171] ([63.208.196.171:3883] helo=outbound.mailhop.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D9/45-07574-A44E5A64 for ; Tue, 24 Jul 2007 07:36:43 -0400 Received: from [81.22.163.71] (helo=[10.6.109.96]) by outbound.mailhop.org with esmtpsa (SSLv3:RC4-MD5:128) (Exim 4.63) (envelope-from ) id 1IDIgx-000L60-Vn; Tue, 24 Jul 2007 07:36:40 -0400 X-MHO-User: U2FsdGVkX1+mqPzS4ek7uT3zvbEP+ScAxeS9xuAdIns= X-Mail-Handler: MailHop Outbound by DynDNS X-Originating-IP: 81.22.163.71 X-Report-Abuse-To: abuse@dyndns.com (see http://www.mailhop.org/outbound/abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX1/ikv/5JQnUsqRirR2ifWHPQhOFK0iaBRo= Reply-To: jani.taskinen@iki.fi To: Nicolas =?ISO-8859-1?Q?B=E9rard-Nault?= Cc: internals Mailing List In-Reply-To: <30bd80240707211052i6a32223aw5d34feeb5a53a8e6@mail.gmail.com> References: <30bd80240707211052i6a32223aw5d34feeb5a53a8e6@mail.gmail.com> Content-Type: text/plain; charset=UTF-8 Date: Tue, 24 Jul 2007 14:36:38 +0300 Message-ID: <1185276998.3354.12.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.8.3 (2.8.3-2.fc6) Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Socket constants From: jani.taskinen@sci.fi (Jani Taskinen) Addded. They will be available if the underlying system defines them. (And MSG_EOF is MSG_FIN on some systems..) --Jani On Sat, 2007-07-21 at 13:52 -0400, Nicolas B=C3=A9rard-Nault wrote: > Is there a reason the MSG_EOR and MSG_EOF constants are not registered in > PHP ? If not, could someone apply the attached patch (against HEAD). >=20 > Regards, > Nicolas. >=20 > Patch below: >=20 > Index: sockets.c > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > RCS file: /repository/php-src/ext/sockets/sockets.c,v > retrieving revision 1.190 > diff -r1.190 sockets.c > 471a472,473 > > REGISTER_LONG_CONSTANT("MSG_EOR", > MSG_EOR, CONST_CS | CONST_PERSISTENT); > > REGISTER_LONG_CONSTANT("MSG_EOF", > MSG_EOF, CONST_CS | CONST_PERSISTENT); >=20 >=20