Added missing sockets functions and constants
This commit is contained in:
parent
e5299781ed
commit
c6ca067047
|
@ -4272,6 +4272,9 @@ const FUNCTIONS = array (
|
|||
'socket_shutdown' => 'sockets/sockets.php',
|
||||
'socket_strerror' => 'sockets/sockets.php',
|
||||
'socket_write' => 'sockets/sockets.php',
|
||||
'socket_wsaprotocol_info_export' => 'sockets/sockets.php',
|
||||
'socket_wsaprotocol_info_import' => 'sockets/sockets.php',
|
||||
'socket_wsaprotocol_info_release' => 'sockets/sockets.php',
|
||||
'sodium_add' => 'sodium/sodium.php',
|
||||
'sodium_base642bin' => 'sodium/sodium.php',
|
||||
'sodium_bin2base64' => 'sodium/sodium.php',
|
||||
|
@ -5394,6 +5397,11 @@ const CONSTANTS = array (
|
|||
'AF_INET' => 'sockets/sockets.php',
|
||||
'AF_INET6' => 'sockets/sockets.php',
|
||||
'AF_UNIX' => 'sockets/sockets.php',
|
||||
'AI_ADDRCONFIG' => 'sockets/sockets.php',
|
||||
'AI_CANONNAME' => 'sockets/sockets.php',
|
||||
'AI_NUMERICHOST' => 'sockets/sockets.php',
|
||||
'AI_NUMERICSERV' => 'sockets/sockets.php',
|
||||
'AI_PASSIVE' => 'sockets/sockets.php',
|
||||
'ALT_DIGITS' => 'standard/standard_defines.php',
|
||||
'AMQP_AUTOACK' => 'amqp/amqp.php',
|
||||
'AMQP_AUTODELETE' => 'amqp/amqp.php',
|
||||
|
@ -10495,6 +10503,7 @@ const CONSTANTS = array (
|
|||
'SOCKET_ECONNREFUSED' => 'sockets/sockets.php',
|
||||
'SOCKET_ECONNRESET' => 'sockets/sockets.php',
|
||||
'SOCKET_EDESTADDRREQ' => 'sockets/sockets.php',
|
||||
'SOCKET_EDISCON' => 'sockets/sockets.php',
|
||||
'SOCKET_EDQUOT' => 'sockets/sockets.php',
|
||||
'SOCKET_EEXIST' => 'sockets/sockets.php',
|
||||
'SOCKET_EFAULT' => 'sockets/sockets.php',
|
||||
|
@ -10553,6 +10562,7 @@ const CONSTANTS = array (
|
|||
'SOCKET_EPERM' => 'sockets/sockets.php',
|
||||
'SOCKET_EPFNOSUPPORT' => 'sockets/sockets.php',
|
||||
'SOCKET_EPIPE' => 'sockets/sockets.php',
|
||||
'SOCKET_EPROCLIM' => 'sockets/sockets.php',
|
||||
'SOCKET_EPROTO' => 'sockets/sockets.php',
|
||||
'SOCKET_EPROTONOSUPPORT' => 'sockets/sockets.php',
|
||||
'SOCKET_EPROTOTYPE' => 'sockets/sockets.php',
|
||||
|
@ -10565,6 +10575,7 @@ const CONSTANTS = array (
|
|||
'SOCKET_ESOCKTNOSUPPORT' => 'sockets/sockets.php',
|
||||
'SOCKET_ESPIPE' => 'sockets/sockets.php',
|
||||
'SOCKET_ESRMNT' => 'sockets/sockets.php',
|
||||
'SOCKET_ESTALE' => 'sockets/sockets.php',
|
||||
'SOCKET_ESTRPIPE' => 'sockets/sockets.php',
|
||||
'SOCKET_ETIME' => 'sockets/sockets.php',
|
||||
'SOCKET_ETIMEDOUT' => 'sockets/sockets.php',
|
||||
|
@ -10574,6 +10585,14 @@ const CONSTANTS = array (
|
|||
'SOCKET_EWOULDBLOCK' => 'sockets/sockets.php',
|
||||
'SOCKET_EXDEV' => 'sockets/sockets.php',
|
||||
'SOCKET_EXFULL' => 'sockets/sockets.php',
|
||||
'SOCKET_HOST_NOT_FOUND' => 'sockets/sockets.php',
|
||||
'SOCKET_NOTINITIALISED' => 'sockets/sockets.php',
|
||||
'SOCKET_NO_ADDRESS' => 'sockets/sockets.php',
|
||||
'SOCKET_NO_DATA' => 'sockets/sockets.php',
|
||||
'SOCKET_NO_RECOVERY' => 'sockets/sockets.php',
|
||||
'SOCKET_SYSNOTREADY' => 'sockets/sockets.php',
|
||||
'SOCKET_TRY_AGAIN' => 'sockets/sockets.php',
|
||||
'SOCKET_VERNOTSUPPORTED' => 'sockets/sockets.php',
|
||||
'SOCK_DGRAM' => 'sockets/sockets.php',
|
||||
'SOCK_RAW' => 'sockets/sockets.php',
|
||||
'SOCK_RDM' => 'sockets/sockets.php',
|
||||
|
|
|
@ -1332,6 +1332,44 @@ function socket_getopt ($socket, $level, $optname) {}
|
|||
*/
|
||||
function socket_setopt ($socket, $level, $optname, $optval) {}
|
||||
|
||||
/**
|
||||
* Exports the WSAPROTOCOL_INFO Structure
|
||||
*
|
||||
* @link https://www.php.net/manual/en/function.socket-wsaprotocol-info-export.php
|
||||
*
|
||||
* @param resource $socket
|
||||
* @param int $target_pid
|
||||
* @return string|false
|
||||
*
|
||||
* @since 7.3
|
||||
*/
|
||||
function socket_wsaprotocol_info_export($socket, $target_pid) {}
|
||||
|
||||
/**
|
||||
* Imports a Socket from another Process
|
||||
*
|
||||
* @link https://www.php.net/manual/en/function.socket-wsaprotocol-info-import.php
|
||||
*
|
||||
* @param string $info_id
|
||||
* @return resource|false
|
||||
*
|
||||
* @since 7.3
|
||||
*/
|
||||
function socket_wsaprotocol_info_import($info_id) {}
|
||||
|
||||
/**
|
||||
* Releases an exported WSAPROTOCOL_INFO Structure
|
||||
*
|
||||
* @link https://www.php.net/manual/en/function.socket-wsaprotocol-info-release.php
|
||||
*
|
||||
* @param string $info_id
|
||||
* @return bool
|
||||
*
|
||||
* @since 7.3
|
||||
*/
|
||||
function socket_wsaprotocol_info_release($info_id) {}
|
||||
|
||||
|
||||
define ('AF_UNIX', 1);
|
||||
define ('AF_INET', 2);
|
||||
|
||||
|
@ -2100,5 +2138,20 @@ define ('SCM_RIGHTS', 1);
|
|||
define ('SCM_CREDENTIALS', 2);
|
||||
define ('SO_PASSCRED', 16);
|
||||
|
||||
// End of sockets v.
|
||||
?>
|
||||
define ('SOCKET_EPROCLIM', 10067);
|
||||
define ('SOCKET_ESTALE', 10070);
|
||||
define ('SOCKET_EDISCON', 10101);
|
||||
define ('SOCKET_SYSNOTREADY', 10091);
|
||||
define ('SOCKET_VERNOTSUPPORTED', 10092);
|
||||
define ('SOCKET_NOTINITIALISED', 10093);
|
||||
define ('SOCKET_HOST_NOT_FOUND', 11001);
|
||||
define ('SOCKET_TRY_AGAIN', 11002);
|
||||
define ('SOCKET_NO_RECOVERY', 11003);
|
||||
define ('SOCKET_NO_DATA', 11004);
|
||||
define ('SOCKET_NO_ADDRESS', 11004);
|
||||
|
||||
define ('AI_PASSIVE', 1);
|
||||
define ('AI_CANONNAME', 2);
|
||||
define ('AI_NUMERICHOST', 4);
|
||||
define ('AI_ADDRCONFIG', 1024);
|
||||
define ('AI_NUMERICSERV', 8);
|
||||
|
|
Loading…
Reference in New Issue