1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Fix GH-9574: SOCKET_EPROTO constant missing since PHP 8.2 dev

Closes GH-9575.
This commit is contained in:
Christoph M. Becker
2022-09-19 13:10:21 +02:00
parent 33918f999d
commit 4767b0999d
2 changed files with 5 additions and 5 deletions

View File

@@ -1105,11 +1105,11 @@ const SOCKET_ESRMNT = UNKNOWN;
*/
const SOCKET_ECOMM = UNKNOWN;
#endif
#ifdef PHP_SOCKET_EPROTO
#ifdef EPROTO
/**
* Protocol error
* @var int
* @cvalue PHP_SOCKET_EPROTO
* @cvalue EPROTO
*/
const SOCKET_EPROTO = UNKNOWN;
#endif

View File

@@ -1,5 +1,5 @@
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: c4fe33bd6d665f80be942c9cc9c0ce954d719c0d */
* Stub hash: d28c6b566f4739b1eaefb82032e620aeb59728dc */
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_socket_select, 0, 4, MAY_BE_LONG|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(1, read, IS_ARRAY, 1)
@@ -738,8 +738,8 @@ static void register_sockets_symbols(int module_number)
#if defined(ECOMM)
REGISTER_LONG_CONSTANT("SOCKET_ECOMM", ECOMM, CONST_PERSISTENT);
#endif
#if defined(PHP_SOCKET_EPROTO)
REGISTER_LONG_CONSTANT("SOCKET_EPROTO", PHP_SOCKET_EPROTO, CONST_PERSISTENT);
#if defined(EPROTO)
REGISTER_LONG_CONSTANT("SOCKET_EPROTO", EPROTO, CONST_PERSISTENT);
#endif
#if defined(EMULTIHOP)
REGISTER_LONG_CONSTANT("SOCKET_EMULTIHOP", EMULTIHOP, CONST_PERSISTENT);