# [PATCH] stream_socket_pair

- Thread: https://externals.io/message/14026
- Original archive: https://news-web.php.net/php.internals/14026
- Started by six@t0x.net on 2004-12-08T18:36:54+00:00
- Messages: 5
- 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

---

## #14026 — six@t0x.net — 2004-12-08T18:36:54+00:00

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

i'm reposting this patch which adds the stream_socket_pair function, 
I've posted it one month ago, made some requested modifications but it 
seems nobody commited it so if you still want it it's here : 
http://si.kz/~six/stream_socket_pair.diff

vincent

---

## #14027 — Wez Furlong — 2004-12-08T18:49:40+00:00

URL: https://externals.io/message/14026#14027 · In reply to: #14026

I didn't forget, I just didn't get to it yet--sorry.

Will get to it real soon now (it will be in PHP 5.1)

--Wez.



> i'm reposting this patch which adds the stream_socket_pair function,
> I've posted it one month ago, made some requested modifications but it
> seems nobody commited it so if you still want it it's here :
> http://si.kz/~six/stream_socket_pair.diff
> 
> vincent

---

## #14050 — Wez Furlong — 2004-12-12T16:17:05+00:00

URL: https://externals.io/message/14026#14050 · In reply to: #14026

Committed, complete with configure checks.

--Wez.



> i'm reposting this patch which adds the stream_socket_pair function,
> I've posted it one month ago, made some requested modifications but it
> seems nobody commited it so if you still want it it's here :
> http://si.kz/~six/stream_socket_pair.diff

---

## #14058 — Joe Orton — 2004-12-13T10:36:05+00:00

URL: https://externals.io/message/14026#14058 · In reply to: #14050

> Committed, complete with configure checks.

This doesn't seem to compile:

ext/standard/streamsfuncs.c: In function `zif_stream_socket_pair':
ext/standard/streamsfuncs.c:61: error: too few arguments to function `php_socket_strerror'
ext/standard/streamsfuncs.c:70: warning: passing arg 2 of `add_next_index_zval' makes pointer from integer without a cast
ext/standard/streamsfuncs.c:71: warning: passing arg 2 of `add_next_index_zval' makes pointer from integer without a cast

Regards,

joe

---

## #14059 — Wez Furlong — 2004-12-13T13:52:57+00:00

URL: https://externals.io/message/14026#14059 · In reply to: #14058

Doh.  Fixed; thanks for the heads up.
(that'll teach me to merge and alter a unixy patch while working on a
win32 system)

--Wez.


> 
> > […]
> 
> This doesn't seem to compile:
