The essence of the patch is ok, it's just the checking of the type and
domain args that is too magical.
Probably the best thing to do is register integer constants for
AF_INET etc., but name them STREAM_AF_INET, STREAM_AF_INET6,
STREAM_AF_UNIX, STREAM_SOCK_STREAM and STREAM_SOCK_DGRAM. Look for
R
hi,
this patch against php-5.0.2 adds a stream_socket_create_pair()
function. it's nearly identical to socket_create_pair() except it
returns streams instead of socket resources.
i'm currently rewriting a sockets daemon framework using streams with
the added benefit of ssl and other stream good