Skip to content

Commit 3414ae6

Browse files
devnexencmb69
authored andcommitted
sockets: add SO_INCOMING_CPU constant
get/set the cpu attached to a socket, no special treatment needed, it is simply an integer. Closes GH-7753.
1 parent 04b9049 commit 3414ae6

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

UPGRADING

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,9 @@ PHP 8.2 UPGRADE NOTES
145145
- COM_DOTNET:
146146
. LOCALE_NEUTRAL
147147

148+
- Sockets:
149+
. SO_INCOMING_CPU
150+
148151
========================================
149152
11. Changes to INI File Handling
150153
========================================

ext/sockets/sockets.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,9 @@ static PHP_MINIT_FUNCTION(sockets)
545545
#ifdef SO_MARK
546546
REGISTER_LONG_CONSTANT("SO_MARK", SO_MARK, CONST_CS | CONST_PERSISTENT);
547547
#endif
548+
#ifdef SO_INCOMING_CPU
549+
REGISTER_LONG_CONSTANT("SO_INCOMING_CPU", SO_INCOMING_CPU, CONST_CS | CONST_PERSISTENT);
550+
#endif
548551
#ifdef TCP_NODELAY
549552
REGISTER_LONG_CONSTANT("TCP_NODELAY", TCP_NODELAY, CONST_CS | CONST_PERSISTENT);
550553
#endif

0 commit comments

Comments
 (0)