Hi internals,
The goal of this patch is to allow user handling of low level socket
options for stream sockets created with stream_socket_*() or fsockopen()
functions.
I choose to extend the socket_get_options() and socket_set_options()
functions and keep the functionality inside the sockets
Hi everyone,
I have made a patch to fix this bug: http://bugs.php.net/bug.php?id=45808
Diff against 5.3.0 is here: http://si.kz/php-bug-45808.diff.txt
As far as I have tested, everything works as expected with this patch
applied. Can someone with karma please review it and apply to HEAD
and/o
I made a wrong assumption in the first patch and although it worked,
stream_set_write_buffer() did return an error.
This one is fixes the return value issue :
--- main/streams/xp_socket.c.orig 2007-12-01 16:56:29.0 +0100
+++ main/streams/xp_socket.c2007-12-03 21:07:02.
Hello,
Currently stream_set_write_buffer() only works with file streams. If
used on socket streams it always returns -1 and does nothing. This can
be quite problematic when using datagram sockets because any datagram
bigger than the default 8Kb gets chopped and more than one datagram get
sent
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" <[EMAIL PROTECTED]>
Newsgroups: php.internals
To: "Vincent NEGRIER" <[EMAIL PROTECTED]>
Cc:
against today's
CVS this time :)
regards,
Vincent
- Original Message -
From: "Vincent Negrier" <[EMAIL PROTECTED]>
Newsgroups: php.internals
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 13, 2004 11:52 AM
Subject: Re: [PATCH] new function stream_socket_create_pai
> > the patch is here :
http://si.kz/~six/stream_socket_create_pair_patch.tgz
> >
> To add to Wez's comments, I'd rather see it return an array of socket
> streams (or FALSE on failure), rather than return true and tuck the
streams
> into a by-ref parameter.
It would look simpler, but on the other