I wouldn't bother checking against known types; let sockpair() handle that. It is possible that someone might want/need to use some other value which we haven't thought of, or are even aware of.
--Wez. On Wed, 13 Oct 2004 15:58:46 +0200, Vincent NEGRIER <[EMAIL PROTECTED]> wrote: > Here is an updated version of the patch : > http://si.kz/~six/stream_socket_pair.diff > > It now registers STREAM_AF_* and STREAM_SOCK_* long constants, checks the > domain and type against known types and passes the array of created streams > as return value instead of a byref param... and the diff is against today's > CVS this time :) -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php