# Socket constants

- Thread: https://externals.io/message/31147
- Original archive: https://news-web.php.net/php.internals/31147
- Started by nicobn@php.net on 2007-07-21T17:52:46+00:00
- Messages: 3
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #31147 — nicobn@php.net — 2007-07-21T17:52:46+00:00

URL: https://externals.io/message/31147#31147

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

---

## #31235 — Jani Taskinen — 2007-07-24T11:36:38+00:00

URL: https://externals.io/message/31147#31235 · In reply to: #31147

Addded. They will be available if the underlying system defines them.
(And `MSG_EOF` is MSG_FIN on some systems..)

--Jani



> 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
> > […]
> MSG_EOR,                CONST_CS | CONST_PERSISTENT);
> > […]
> MSG_EOF,                CONST_CS | CONST_PERSISTENT);

---

## #31245 — nicobn@php.net — 2007-07-24T22:43:09+00:00

URL: https://externals.io/message/31147#31245 · In reply to: #31235

Thank you !


>
> Addded. They will be available if the underlying system defines them.
> (And `MSG_EOF` is MSG_FIN on some systems..)
>
> --Jani
>
>
> 
> > […]
> in
> > […]
>
>


-- 
Nicolas Bérard-Nault (nicobn@gmail.com)
Étudiant D.E.C. Sciences, Lettres & Arts
Cégep de Sherbrooke

Homepage: http://nicobn.googlepages.com
