History log of /PHP-8.2/ext/sockets/sockets.c (Results 1 – 25 of 439)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# e583890a 12-Oct-2024 David Carlier

Fix socket_recvfrom overflow on buffer size.

when passing PHP_INT_MAX for the $length param we get this (with ubsan)

`ext/sockets/sockets.c:1409:36: runtime error: signed integer ov

Fix socket_recvfrom overflow on buffer size.

when passing PHP_INT_MAX for the $length param we get this (with ubsan)

`ext/sockets/sockets.c:1409:36: runtime error: signed integer overflow: 9223372036854775807 + 1 cannot be represented in type 'long int'`

close GH-16382

show more ...


# 8537aa68 06-Oct-2024 David Carlier

Fix GH-16267 socket_strerror overflow on argument value.

only socket_strerror provides user-supplied value to sockets_strerror
handler.

close GH-16270


# ba4c82fd 31-Mar-2024 David Carlier

ext/sockets: socket_create_listen clearing socket data before binding.

Close GH-13855


# e3f0d034 06-Mar-2024 David Carlier

Fix GH-13603 ext/sockets: properly initialised address info data.

Led to random characters visible on socket id on macOs.

Close GH-13606


# 931a8b07 17-Nov-2023 David CARLIER

inet_ntop requirement check at configure time instead (#12700)


# 44f9c226 29-Oct-2023 David Carlier

following-up on GH-12551: removing inet_ntoa usage

Close GH-12554


# 1c8943bc 29-Oct-2023 David Carlier

cleanup inet_ntoa usage.

starting with the socket extension. PHP 8 requires windows vista/2008
minimum, even more exotic systems like solaris or haiku supports
inet_ntop, so there is

cleanup inet_ntoa usage.

starting with the socket extension. PHP 8 requires windows vista/2008
minimum, even more exotic systems like solaris or haiku supports
inet_ntop, so there is no need to keep supporting this old interface.

Close GH-12551

show more ...


# 732d92c0 28-Apr-2023 Javier Eguiluz

[skip ci] Fix various typos and grammar issues (#11143)


# 735edd1c 21-Dec-2021 George Peter Banyard

Voidify php_sock_array_from_fd_set() as result is never used


# 3eb9dd47 21-Dec-2021 George Peter Banyard

Use bool and zend_result where it makes sense in sockets extension


# 7936c808 23-Jan-2023 Máté Kocsis

Fix GH-8329 Print true/false instead of bool in error and debug messages (#8385)


# 4c4e72f1 28-Oct-2022 David CARLIER

socket add socket_atmark support.

checks whether the socket belongs to the out-of-band mark, thus allows to be
processed accordingly (using the MSG_OOB flag on send/recv).

Clos

socket add socket_atmark support.

checks whether the socket belongs to the out-of-band mark, thus allows to be
processed accordingly (using the MSG_OOB flag on send/recv).

Closes #9846.

show more ...


# 35b5acef 08-Oct-2022 David Carlier

SO_ATTACH_REUSEPORT_CBPF filter update. SDK_AD_QUEUE support to attach to a queue.

Closes #9690


# 615b8006 08-Feb-2022 David Carlier

socket module add SO_ATTACH_REUSEPORT_CPBF for Linux.

to be used in conjunction with SO_REUSPORT, giving a greater control
over how we bind a socket instead of the round robin workflow,

socket module add SO_ATTACH_REUSEPORT_CPBF for Linux.

to be used in conjunction with SO_REUSPORT, giving a greater control
over how we bind a socket instead of the round robin workflow, we do
instead attach to the processor id as :
- we assign the processor_id to A in the BPF filter.
- then returns A.

in other words, a more modern version of SO_INCOMING_CPU (ie can have a per
worker notion we do not use here).
Closes #8062

show more ...


# 743d3780 08-Sep-2022 Ilija Tovilo

Add clang ASAN/UBSAN push job

Closes GH-9507


# b5da98b9 27-Sep-2023 twosee

Fix socket_export_stream() with wrong protocol

Closes GH-12310.


# 80232de0 01-Oct-2022 Arnaud Le Blanc

Return immediately when FD_SETSIZE is exceeded (#9602)


# a01dd9fe 14-Sep-2022 Bob Weinand

Revert "Port all internally used classes to use default_object_handlers"

This reverts commit 94ee4f9834743ca74f6c9653863273277ce6c61a.

The commit was a bit too late to be included i

Revert "Port all internally used classes to use default_object_handlers"

This reverts commit 94ee4f9834743ca74f6c9653863273277ce6c61a.

The commit was a bit too late to be included in PHP 8.2 RC1. Given it's a massive ABI break, we decide to postpone the change to PHP 8.3.

show more ...


# 94ee4f98 24-Aug-2022 Bob Weinand

Port all internally used classes to use default_object_handlers

Signed-off-by: Bob Weinand <bobwei9@hotmail.com>


# 98e5c4e3 16-Aug-2022 Máté Kocsis

Declare ext/sockets constants in stubs (#9349)


# 9090e260 11-Mar-2022 David Carlier

sockets ext for solaris update.

socket filter support, system can support up to 32 filters giving the possibility to retrive the full list.
Closes #8191.


# dedad408 30-May-2022 David Carlier

sockets introduces socket_set_option SO_ZEROCOPY and MSG_ZEROCOPY for the socket_send* functions. it avoids copy b/w userland and kernel for both TCP and UDP protocols.


# a1934273 18-Jun-2022 David Carlier

Adds `TCP_CONGESTION` socket option for Linux/FreeBSD.

Closes #8824.


# 6b02cabc 09-Jun-2022 David CARLIER

Add `SO_SETFIB` FreeBSD socket option constant.

Aims to set the route table.
Closes #8742.


# d677cc13 06-Jun-2022 David Carlier

Add `SO_BPF_EXTENSIONS` flag to socket.

Returns the supported bpf extensions from the kernel. Linux only.
Closes GH-8713.


12345678910>>...18