I made the changes so that FALSE is returned :
http://si.kz/~six/stream_socket_pair.noassume.diff
regards,
Vincent
----- Original Message -----
From: "Andrey Hristov" <php@hristov.com>
Newsgroups: php.internals
To: "Vincent NEGRIER" <six@t0x.net>
Cc: "Wez Furlong" <kingwez@gmail.com>; <internals@lists.php.net>
Sent: Wednesday, October 13, 2004 4:05 PM
Subject: Re: [PHP-DEV] Re: [PATCH] new function stream_socket_create_pair
> Hi,
> at least my experience is that when a parameter's value is bad, FALSE
> is returned. In this case the code throws E_WARNING but continues
exectuion
> assuming something. IMO it is better not to assume but to return FALSE.
>
> Thanks,
> Andrey
>
> Vincent NEGRIER 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