David Carlier
7b4b40f06f
ext/sockets: addig Linux's IP_BIND_ADDRESS_NO_PORT.
...
Delay ephemeral port number attribution at connect time rather
than at bind's one.
Close GH-11119.
2023-04-26 19:26:29 +01:00
David CARLIER
6c532df705
ext/sockets adding FreeBSD's SO_REUSEPORT_LB constant.
...
SO_REUSEPORT_LB is, in fact, closer to the classical Linux's SO_REUSEPORT.
Close GH-11038
2023-04-08 17:35:10 +01:00
David CARLIER
fbaa2eb059
ext/sockets: add TCP_REPAIR to silently close a connection.
...
Closes GH-10724.
2023-02-27 22:56:06 +00:00
David Carlier
19a7281efa
sockets add SO_RERROR/SO_ZEROIZE/SO_SPLICE net/openbsd's constants.
...
Closes GH-10563.
2023-02-12 21:55:55 +00:00
David Carlier
908d954de0
sockets updlite protocol support, with checksum coverage settings.
...
Close GH-10468
2023-01-29 18:19:54 +00:00
David Carlier
f8f7fd2db1
sockets add AF_DIVERT constant.
...
Allow to bind a socket to a divert port without being concerned
by its address. for ipfw filter purpose (SO_USER_COOKIE constant).
FreeBSD only.
Close GH-10415.
2023-01-22 22:48:45 +00:00
David Carlier
9198e8894b
socket DF flag on UDP socket via IP_MTU_DISCOVER on Linux and IP_DONTFRAGMENT on FreeBSD for path MTU discovery purpose.
...
idea proposal via ml :
https://marc.info/?l=php-internals&m=167329288509393&w=2
Close GH-10282
2023-01-12 22:22:30 +00:00
David Carlier
9c2572565a
sockets adding TCP_QUICKACK constant.
...
having tigher control on ACK delays, difference is the setting
is `volatile` as it can be turned off by the kernel if not set
explicitally set otherwise on the socket.
Closes GH-10145.
2022-12-22 14:50:33 +00:00
David CARLIER
4c4e72f149
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 .
2022-10-31 16:38:18 +00:00
David Carlier
615b8006c4
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
2022-09-29 23:32:39 +01:00
Christoph M. Becker
4767b0999d
Fix GH-9574: SOCKET_EPROTO constant missing since PHP 8.2 dev
...
Closes GH-9575.
2022-09-19 14:41:30 +02:00
Máté Kocsis
e733ebf30e
Add parenthesis around preprocessor conditions in stubs
...
gen_stub.php concatenates nested #ifs into one #if so let's make sure the semantics remain the same.
2022-09-02 16:21:28 +02:00
Máté Kocsis
98e5c4e3a3
Declare ext/sockets constants in stubs ( #9349 )
2022-08-16 13:18:31 +02:00
Máté Kocsis
d9e5e63032
Add more specific array return type hints for various extensions - part 6 ( #7474 )
2021-10-07 14:29:29 +02:00
Joe Watkins
570d9b63e9
Not serializable flag permeation
2021-07-20 12:28:35 +02:00
Máté Kocsis
a730dc0cf9
Generate class entries for snmp, soap, sockets, sodium, sqlite3, sysv*, tidy
...
Closes GH-6696
2021-02-15 11:45:26 +01:00
Christoph M. Becker
41e9a8ebdc
socket_create_pair() can no longer return NULL
...
Closes GH-6592.
2021-01-12 12:08:31 +01:00
Nikita Popov
79484b4f8a
Update ext/sockets parameter names
...
Also change $max_length to $length in a number of filesystem APIs,
where our usage was inconsistent.
Closes GH-6276.
2020-10-06 12:12:43 +02:00
Máté Kocsis
c76910cd96
Display types in stubs more uniformly
...
In preparation for generating method signatures for the manual.
This change gets rid of bogus false|null return types, a few unnecessary trailing backslashes, and settles on using ? when possible for nullable types.
2020-09-16 21:19:36 +02:00
Máté Kocsis
628db3f3b5
Fix UNKNOWN default values in various extensions
...
Closes GH-6075
2020-09-07 19:02:02 +02:00
Máté Kocsis
af80d8a14e
Add more argument types to stubs
...
Closes GH-5943
2020-08-07 12:35:30 +02:00
Máté Kocsis
77172c220a
Convert resources to objects in ext/sockets
...
Closes GH-5900.
2020-08-03 23:26:38 +02:00
Nikita Popov
d0006b5fac
Use UNKNOWN default for socket_connect()
...
Specifying the port is mandatory for INET sockets.
2020-04-14 16:09:01 +02:00
Nikita Popov
b9b2e8ddde
Fix socket_write() default value
2020-04-14 16:08:55 +02:00
Máté Kocsis
21cfa03f17
Generate function entries for another batch of extensions
...
Closes GH-5352
2020-04-05 21:15:30 +02:00
Máté Kocsis
a43bc33fb2
Annotate function aliases in stubs
2020-04-04 13:03:16 +02:00
Nikita Popov
2bcc4ab8f4
Verify that all stubs have a return type
2020-04-03 17:59:30 +02:00
Máté Kocsis
736b22dc0b
Add stubs for aliases
...
Closes GH-5187
2020-02-18 21:10:36 +01:00
Máté Kocsis
27e83d0fb8
Add union return types for function stubs
2019-11-11 14:54:55 +01:00
Thomas Gerbet
428bd3d908
Add stubs for ext-sockets
2019-10-12 17:08:24 +02:00