Socket constants

php.internals

=?ISO-8859-1?Q?Nicolas_B=E9rard-Nault?=

19 years ago
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). Regards, Nicolas. Patch below: Index: sockets.c =================================================================== 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);
-- Nicolas Bérard-Nault (nicobn@gmail.com) Étudiant D.E.C. Sciences, Lettres & Arts Cégep de Sherbrooke Homepage: http://nicobn.googlepages.com

Jani Taskinen

19 years ago
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érard-Nault wrote:

=?ISO-8859-1?Q?Nicolas_B=E9rard-Nault?=

19 years ago
Thank you ! On 7/24/07, Jani Taskinen <jani.taskinen@sci.fi> wrote:
> > 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érard-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). > > > > Regards, > > Nicolas. > > > > Patch below: > > > > Index: sockets.c > > =================================================================== > > 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); > > > > > >
-- Nicolas Bérard-Nault (nicobn@gmail.com) Étudiant D.E.C. Sciences, Lettres & Arts Cégep de Sherbrooke Homepage: http://nicobn.googlepages.com