go to bug id or search bugs for
Please, add function stream_socket_listen(resource,backlog):
it should call listen() for the socket created by
I need to use stream_socket_server but I can not use socket_*,
because of libevent.
Also, it would be nice to have a stream_socket_set_option function,
which allows to apply SO_REUSE and other parameters.
Add a Patch
Add a Pull Request
I can't get how libevent would change anything on your problem. Could you elaborate please, knowing PHP wont use such a layer internally anyway ?
Also, I would strongly recommand you to use ext/socket.
ext/socket is a very thin wrapper over OS's socket capabilities, whereas stream_ suffer from a much more complex layer.
For example, for socket low level option, such as SO_REUSE , ext/socket is much more suitable. http://www.php.net/ref.sockets