Predefined Constants of Swoole

Notice: ext-swoole is supported until v4.7.1, use ext-openswoole >= v4.7.1. Latest version: pecl install openswoole-4.8.1

Open Swoole predefined constants

[SWOOLE_VERSION] => 4.7.3-dev
[SWOOLE_VERSION_ID] => 40703
[SWOOLE_MAJOR_VERSION] => 4
[SWOOLE_MINOR_VERSION] => 7
[SWOOLE_RELEASE_VERSION] => 3
[SWOOLE_EXTRA_VERSION] => dev
[SWOOLE_DEBUG] =>
[SWOOLE_HAVE_COMPRESSION] => 1
[SWOOLE_HAVE_ZLIB] => 1
[SWOOLE_HAVE_BROTLI] => 1
[SWOOLE_USE_HTTP2] => 1
[SWOOLE_USE_POSTGRES] => 1
[SWOOLE_USE_SHORTNAME] => 1
[SWOOLE_BASE] => 1
[SWOOLE_PROCESS] => 2
[SWOOLE_IPC_UNSOCK] => 1
[SWOOLE_IPC_MSGQUEUE] => 2
[SWOOLE_IPC_PREEMPTIVE] => 3
[SWOOLE_SOCK_TCP] => 1
[SWOOLE_SOCK_TCP6] => 3
[SWOOLE_SOCK_UDP] => 2
[SWOOLE_SOCK_UDP6] => 4
[SWOOLE_SOCK_UNIX_DGRAM] => 6
[SWOOLE_SOCK_UNIX_STREAM] => 5
[SWOOLE_TCP] => 1
[SWOOLE_TCP6] => 3
[SWOOLE_UDP] => 2
[SWOOLE_UDP6] => 4
[SWOOLE_UNIX_DGRAM] => 6
[SWOOLE_UNIX_STREAM] => 5
[SWOOLE_SOCK_SYNC] =>
[SWOOLE_SOCK_ASYNC] => 1
[SWOOLE_SYNC] => 2048
[SWOOLE_ASYNC] => 1024
[SWOOLE_KEEP] => 4096
[SWOOLE_SSL] => 512
[SWOOLE_SSLv3_METHOD] => 1
[SWOOLE_SSLv3_SERVER_METHOD] => 2
[SWOOLE_SSLv3_CLIENT_METHOD] => 3
[SWOOLE_TLSv1_METHOD] => 6
[SWOOLE_TLSv1_SERVER_METHOD] => 7
[SWOOLE_TLSv1_CLIENT_METHOD] => 8
[SWOOLE_TLSv1_1_METHOD] => 9
[SWOOLE_TLSv1_1_SERVER_METHOD] => 10
[SWOOLE_TLSv1_1_CLIENT_METHOD] => 11
[SWOOLE_TLSv1_2_METHOD] => 12
[SWOOLE_TLSv1_2_SERVER_METHOD] => 13
[SWOOLE_TLSv1_2_CLIENT_METHOD] => 14
[SWOOLE_DTLS_SERVER_METHOD] => 16
[SWOOLE_DTLS_CLIENT_METHOD] => 15
[SWOOLE_SSLv23_METHOD] => 0
[SWOOLE_SSLv23_SERVER_METHOD] => 4
[SWOOLE_SSLv23_CLIENT_METHOD] => 5
[SWOOLE_TLS_METHOD] => 0
[SWOOLE_TLS_SERVER_METHOD] => 4
[SWOOLE_TLS_CLIENT_METHOD] => 5
[SWOOLE_SSL_TLSv1] => 8
[SWOOLE_SSL_TLSv1_1] => 16
[SWOOLE_SSL_TLSv1_2] => 32
[SWOOLE_SSL_TLSv1_3] => 64
[SWOOLE_SSL_DTLS] => 128
[SWOOLE_SSL_SSLv2] => 2
[SWOOLE_EVENT_READ] => 512
[SWOOLE_EVENT_WRITE] => 1024
[SWOOLE_STRERROR_SYSTEM] => 0
[SWOOLE_STRERROR_GAI] => 1
[SWOOLE_STRERROR_DNS] => 2
[SWOOLE_STRERROR_SWOOLE] => 9
[SWOOLE_ERROR_MALLOC_FAIL] => 501
[SWOOLE_ERROR_SYSTEM_CALL_FAIL] => 502
[SWOOLE_ERROR_PHP_FATAL_ERROR] => 503
[SWOOLE_ERROR_NAME_TOO_LONG] => 504
[SWOOLE_ERROR_INVALID_PARAMS] => 505
[SWOOLE_ERROR_QUEUE_FULL] => 506
[SWOOLE_ERROR_OPERATION_NOT_SUPPORT] => 507
[SWOOLE_ERROR_PROTOCOL_ERROR] => 508
[SWOOLE_ERROR_WRONG_OPERATION] => 509
[SWOOLE_ERROR_FILE_NOT_EXIST] => 700
[SWOOLE_ERROR_FILE_TOO_LARGE] => 701
[SWOOLE_ERROR_FILE_EMPTY] => 702
[SWOOLE_ERROR_DNSLOOKUP_DUPLICATE_REQUEST] => 710
[SWOOLE_ERROR_DNSLOOKUP_RESOLVE_FAILED] => 711
[SWOOLE_ERROR_DNSLOOKUP_RESOLVE_TIMEOUT] => 712
[SWOOLE_ERROR_DNSLOOKUP_UNSUPPORTED] => 713
[SWOOLE_ERROR_DNSLOOKUP_NO_SERVER] => 714
[SWOOLE_ERROR_BAD_IPV6_ADDRESS] => 720
[SWOOLE_ERROR_UNREGISTERED_SIGNAL] => 721
[SWOOLE_ERROR_EVENT_SOCKET_REMOVED] => 800
[SWOOLE_ERROR_SESSION_CLOSED_BY_SERVER] => 1001
[SWOOLE_ERROR_SESSION_CLOSED_BY_CLIENT] => 1002
[SWOOLE_ERROR_SESSION_CLOSING] => 1003
[SWOOLE_ERROR_SESSION_CLOSED] => 1004
[SWOOLE_ERROR_SESSION_NOT_EXIST] => 1005
[SWOOLE_ERROR_SESSION_INVALID_ID] => 1006
[SWOOLE_ERROR_SESSION_DISCARD_TIMEOUT_DATA] => 1007
[SWOOLE_ERROR_SESSION_DISCARD_DATA] => 1008
[SWOOLE_ERROR_OUTPUT_BUFFER_OVERFLOW] => 1009
[SWOOLE_ERROR_OUTPUT_SEND_YIELD] => 1010
[SWOOLE_ERROR_SSL_NOT_READY] => 1011
[SWOOLE_ERROR_SSL_CANNOT_USE_SENFILE] => 1012
[SWOOLE_ERROR_SSL_EMPTY_PEER_CERTIFICATE] => 1013
[SWOOLE_ERROR_SSL_VERIFY_FAILED] => 1014
[SWOOLE_ERROR_SSL_BAD_CLIENT] => 1015
[SWOOLE_ERROR_SSL_BAD_PROTOCOL] => 1016
[SWOOLE_ERROR_SSL_RESET] => 1017
[SWOOLE_ERROR_SSL_HANDSHAKE_FAILED] => 1018
[SWOOLE_ERROR_PACKAGE_LENGTH_TOO_LARGE] => 1201
[SWOOLE_ERROR_PACKAGE_LENGTH_NOT_FOUND] => 1202
[SWOOLE_ERROR_DATA_LENGTH_TOO_LARGE] => 1203
[SWOOLE_ERROR_TASK_PACKAGE_TOO_BIG] => 2001
[SWOOLE_ERROR_TASK_DISPATCH_FAIL] => 2002
[SWOOLE_ERROR_TASK_TIMEOUT] => 2003
[SWOOLE_ERROR_HTTP2_STREAM_ID_TOO_BIG] => 3001
[SWOOLE_ERROR_HTTP2_STREAM_NO_HEADER] => 3002
[SWOOLE_ERROR_HTTP2_STREAM_NOT_FOUND] => 3003
[SWOOLE_ERROR_HTTP2_STREAM_IGNORE] => 3004
[SWOOLE_ERROR_AIO_BAD_REQUEST] => 4001
[SWOOLE_ERROR_AIO_CANCELED] => 4002
[SWOOLE_ERROR_AIO_TIMEOUT] => 4003
[SWOOLE_ERROR_CLIENT_NO_CONNECTION] => 5001
[SWOOLE_ERROR_SOCKET_CLOSED] => 6001
[SWOOLE_ERROR_SOCKET_POLL_TIMEOUT] => 6002
[SWOOLE_ERROR_SOCKS5_UNSUPPORT_VERSION] => 7001
[SWOOLE_ERROR_SOCKS5_UNSUPPORT_METHOD] => 7002
[SWOOLE_ERROR_SOCKS5_AUTH_FAILED] => 7003
[SWOOLE_ERROR_SOCKS5_SERVER_ERROR] => 7004
[SWOOLE_ERROR_SOCKS5_HANDSHAKE_FAILED] => 7005
[SWOOLE_ERROR_HTTP_PROXY_HANDSHAKE_ERROR] => 7101
[SWOOLE_ERROR_HTTP_INVALID_PROTOCOL] => 7102
[SWOOLE_ERROR_HTTP_PROXY_HANDSHAKE_FAILED] => 7103
[SWOOLE_ERROR_HTTP_PROXY_BAD_RESPONSE] => 7104
[SWOOLE_ERROR_WEBSOCKET_BAD_CLIENT] => 8501
[SWOOLE_ERROR_WEBSOCKET_BAD_OPCODE] => 8502
[SWOOLE_ERROR_WEBSOCKET_UNCONNECTED] => 8503
[SWOOLE_ERROR_WEBSOCKET_HANDSHAKE_FAILED] => 8504
[SWOOLE_ERROR_WEBSOCKET_PACK_FAILED] => 8505
[SWOOLE_ERROR_SERVER_MUST_CREATED_BEFORE_CLIENT] => 9001
[SWOOLE_ERROR_SERVER_TOO_MANY_SOCKET] => 9002
[SWOOLE_ERROR_SERVER_WORKER_TERMINATED] => 9003
[SWOOLE_ERROR_SERVER_INVALID_LISTEN_PORT] => 9004
[SWOOLE_ERROR_SERVER_TOO_MANY_LISTEN_PORT] => 9005
[SWOOLE_ERROR_SERVER_PIPE_BUFFER_FULL] => 9006
[SWOOLE_ERROR_SERVER_NO_IDLE_WORKER] => 9007
[SWOOLE_ERROR_SERVER_ONLY_START_ONE] => 9008
[SWOOLE_ERROR_SERVER_SEND_IN_MASTER] => 9009
[SWOOLE_ERROR_SERVER_INVALID_REQUEST] => 9010
[SWOOLE_ERROR_SERVER_CONNECT_FAIL] => 9011
[SWOOLE_ERROR_SERVER_WORKER_EXIT_TIMEOUT] => 9012
[SWOOLE_ERROR_SERVER_WORKER_ABNORMAL_PIPE_DATA] => 9013
[SWOOLE_ERROR_SERVER_WORKER_UNPROCESSED_DATA] => 9014
[SWOOLE_ERROR_CO_OUT_OF_COROUTINE] => 10001
[SWOOLE_ERROR_CO_HAS_BEEN_BOUND] => 10002
[SWOOLE_ERROR_CO_HAS_BEEN_DISCARDED] => 10003
[SWOOLE_ERROR_CO_MUTEX_DOUBLE_UNLOCK] => 10004
[SWOOLE_ERROR_CO_BLOCK_OBJECT_LOCKED] => 10005
[SWOOLE_ERROR_CO_BLOCK_OBJECT_WAITING] => 10006
[SWOOLE_ERROR_CO_YIELD_FAILED] => 10007
[SWOOLE_ERROR_CO_GETCONTEXT_FAILED] => 10008
[SWOOLE_ERROR_CO_SWAPCONTEXT_FAILED] => 10009
[SWOOLE_ERROR_CO_MAKECONTEXT_FAILED] => 10010
[SWOOLE_ERROR_CO_IOCPINIT_FAILED] => 10011
[SWOOLE_ERROR_CO_PROTECT_STACK_FAILED] => 10012
[SWOOLE_ERROR_CO_STD_THREAD_LINK_ERROR] => 10013
[SWOOLE_ERROR_CO_DISABLED_MULTI_THREAD] => 10014
[SWOOLE_ERROR_CO_CANNOT_CANCEL] => 10015
[SWOOLE_ERROR_CO_NOT_EXISTS] => 10016
[SWOOLE_ERROR_CO_CANCELED] => 10017
[SWOOLE_ERROR_CO_TIMEDOUT] => 10018
[SWOOLE_TRACE_SERVER] => 2
[SWOOLE_TRACE_CLIENT] => 4
[SWOOLE_TRACE_BUFFER] => 8
[SWOOLE_TRACE_CONN] => 16
[SWOOLE_TRACE_EVENT] => 32
[SWOOLE_TRACE_WORKER] => 64
[SWOOLE_TRACE_MEMORY] => 128
[SWOOLE_TRACE_REACTOR] => 256
[SWOOLE_TRACE_PHP] => 512
[SWOOLE_TRACE_HTTP] => 1024
[SWOOLE_TRACE_HTTP2] => 2048
[SWOOLE_TRACE_EOF_PROTOCOL] => 4096
[SWOOLE_TRACE_LENGTH_PROTOCOL] => 8192
[SWOOLE_TRACE_CLOSE] => 16384
[SWOOLE_TRACE_WEBSOCKET] => 32768
[SWOOLE_TRACE_REDIS_CLIENT] => 65536
[SWOOLE_TRACE_MYSQL_CLIENT] => 131072
[SWOOLE_TRACE_HTTP_CLIENT] => 262144
[SWOOLE_TRACE_AIO] => 524288
[SWOOLE_TRACE_SSL] => 1048576
[SWOOLE_TRACE_NORMAL] => 2097152
[SWOOLE_TRACE_CHANNEL] => 4194304
[SWOOLE_TRACE_TIMER] => 8388608
[SWOOLE_TRACE_SOCKET] => 16777216
[SWOOLE_TRACE_COROUTINE] => 33554432
[SWOOLE_TRACE_CONTEXT] => 67108864
[SWOOLE_TRACE_CO_HTTP_SERVER] => 134217728
[SWOOLE_TRACE_TABLE] => 268435456
[SWOOLE_TRACE_CO_CURL] => 536870912
[SWOOLE_TRACE_CARES] => 1073741824
[SWOOLE_TRACE_ALL] => 9223372036854775807
[SWOOLE_LOG_DEBUG] => 0
[SWOOLE_LOG_TRACE] => 1
[SWOOLE_LOG_INFO] => 2
[SWOOLE_LOG_NOTICE] => 3
[SWOOLE_LOG_WARNING] => 4
[SWOOLE_LOG_ERROR] => 5
[SWOOLE_LOG_NONE] => 6
[SWOOLE_LOG_ROTATION_SINGLE] => 0
[SWOOLE_LOG_ROTATION_MONTHLY] => 1
[SWOOLE_LOG_ROTATION_DAILY] => 2
[SWOOLE_LOG_ROTATION_HOURLY] => 3
[SWOOLE_LOG_ROTATION_EVERY_MINUTE] => 4
[SWOOLE_IPC_NONE] => 0
[SWOOLE_IPC_UNIXSOCK] => 1
[SWOOLE_IPC_SOCKET] => 3
[SWOOLE_IOV_MAX] => 1024
[SWOOLE_FILELOCK] => 2
[SWOOLE_MUTEX] => 3
[SWOOLE_SEM] => 4
[SWOOLE_RWLOCK] => 1
[SWOOLE_TIMER_MIN_MS] => 1
[SWOOLE_TIMER_MIN_SEC] => 0.001
[SWOOLE_TIMER_MAX_MS] => 9223372036854775807
[SWOOLE_TIMER_MAX_SEC] => 9.2233720368548E+15
[SWOOLE_DEFAULT_MAX_CORO_NUM] => 100000
[SWOOLE_CORO_MAX_NUM_LIMIT] => 9223372036854775807
[SWOOLE_CORO_INIT] => 0
[SWOOLE_CORO_WAITING] => 1
[SWOOLE_CORO_RUNNING] => 2
[SWOOLE_CORO_END] => 3
[SWOOLE_EXIT_IN_COROUTINE] => 2
[SWOOLE_EXIT_IN_SERVER] => 4
[SWOOLE_CHANNEL_OK] => 0
[SWOOLE_CHANNEL_TIMEOUT] => -1
[SWOOLE_CHANNEL_CLOSED] => -2
[SWOOLE_CHANNEL_CANCELED] => -3
[SWOOLE_HOOK_TCP] => 2
[SWOOLE_HOOK_UDP] => 4
[SWOOLE_HOOK_UNIX] => 8
[SWOOLE_HOOK_UDG] => 16
[SWOOLE_HOOK_SSL] => 32
[SWOOLE_HOOK_TLS] => 64
[SWOOLE_HOOK_STREAM_FUNCTION] => 128
[SWOOLE_HOOK_STREAM_SELECT] => 128
[SWOOLE_HOOK_FILE] => 256
[SWOOLE_HOOK_STDIO] => 32768
[SWOOLE_HOOK_SLEEP] => 512
[SWOOLE_HOOK_PROC] => 1024
[SWOOLE_HOOK_CURL] => 2048
[SWOOLE_HOOK_NATIVE_CURL] => 4096
[SWOOLE_HOOK_BLOCKING_FUNCTION] => 8192
[SWOOLE_HOOK_SOCKETS] => 16384
[SWOOLE_HOOK_ALL] => 2147481599
[SOCKET_ECANCELED] => 89
[SWOOLE_HTTP_CLIENT_ESTATUS_CONNECT_FAILED] => -1
[SWOOLE_HTTP_CLIENT_ESTATUS_REQUEST_TIMEOUT] => -2
[SWOOLE_HTTP_CLIENT_ESTATUS_SERVER_RESET] => -3
[SWOOLE_HTTP_CLIENT_ESTATUS_SEND_FAILED] => -4
[SWOOLE_MYSQLND_CR_UNKNOWN_ERROR] => 2000
[SWOOLE_MYSQLND_CR_CONNECTION_ERROR] => 2002
[SWOOLE_MYSQLND_CR_SERVER_GONE_ERROR] => 2006
[SWOOLE_MYSQLND_CR_OUT_OF_MEMORY] => 2008
[SWOOLE_MYSQLND_CR_SERVER_LOST] => 2013
[SWOOLE_MYSQLND_CR_COMMANDS_OUT_OF_SYNC] => 2014
[SWOOLE_MYSQLND_CR_CANT_FIND_CHARSET] => 2019
[SWOOLE_MYSQLND_CR_MALFORMED_PACKET] => 2027
[SWOOLE_MYSQLND_CR_NOT_IMPLEMENTED] => 2054
[SWOOLE_MYSQLND_CR_NO_PREPARE_STMT] => 2030
[SWOOLE_MYSQLND_CR_PARAMS_NOT_BOUND] => 2031
[SWOOLE_MYSQLND_CR_INVALID_PARAMETER_NO] => 2034
[SWOOLE_MYSQLND_CR_INVALID_BUFFER_USE] => 2035
[SWOOLE_REDIS_MODE_MULTI] => 0
[SWOOLE_REDIS_MODE_PIPELINE] => 1
[SWOOLE_REDIS_TYPE_NOT_FOUND] => 0
[SWOOLE_REDIS_TYPE_STRING] => 1
[SWOOLE_REDIS_TYPE_SET] => 2
[SWOOLE_REDIS_TYPE_LIST] => 3
[SWOOLE_REDIS_TYPE_ZSET] => 4
[SWOOLE_REDIS_TYPE_HASH] => 5
[SWOOLE_REDIS_ERR_IO] => 1
[SWOOLE_REDIS_ERR_OTHER] => 2
[SWOOLE_REDIS_ERR_EOF] => 3
[SWOOLE_REDIS_ERR_PROTOCOL] => 4
[SWOOLE_REDIS_ERR_OOM] => 5
[SWOOLE_REDIS_ERR_CLOSED] => 6
[SWOOLE_REDIS_ERR_NOAUTH] => 7
[SWOOLE_REDIS_ERR_ALLOC] => 8
[SWOOLE_HTTP2_TYPE_DATA] => 0
[SWOOLE_HTTP2_TYPE_HEADERS] => 1
[SWOOLE_HTTP2_TYPE_PRIORITY] => 2
[SWOOLE_HTTP2_TYPE_RST_STREAM] => 3
[SWOOLE_HTTP2_TYPE_SETTINGS] => 4
[SWOOLE_HTTP2_TYPE_PUSH_PROMISE] => 5
[SWOOLE_HTTP2_TYPE_PING] => 6
[SWOOLE_HTTP2_TYPE_GOAWAY] => 7
[SWOOLE_HTTP2_TYPE_WINDOW_UPDATE] => 8
[SWOOLE_HTTP2_TYPE_CONTINUATION] => 9
[SWOOLE_HTTP2_ERROR_NO_ERROR] => 0
[SWOOLE_HTTP2_ERROR_PROTOCOL_ERROR] => 1
[SWOOLE_HTTP2_ERROR_INTERNAL_ERROR] => 2
[SWOOLE_HTTP2_ERROR_FLOW_CONTROL_ERROR] => 3
[SWOOLE_HTTP2_ERROR_SETTINGS_TIMEOUT] => 4
[SWOOLE_HTTP2_ERROR_STREAM_CLOSED] => 5
[SWOOLE_HTTP2_ERROR_FRAME_SIZE_ERROR] => 6
[SWOOLE_HTTP2_ERROR_REFUSED_STREAM] => 7
[SWOOLE_HTTP2_ERROR_CANCEL] => 8
[SWOOLE_HTTP2_ERROR_COMPRESSION_ERROR] => 9
[SWOOLE_HTTP2_ERROR_CONNECT_ERROR] => 10
[SWOOLE_HTTP2_ERROR_ENHANCE_YOUR_CALM] => 11
[SWOOLE_HTTP2_ERROR_INADEQUATE_SECURITY] => 12
[SWOOLE_DISPATCH_RESULT_DISCARD_PACKET] => -1
[SWOOLE_DISPATCH_RESULT_CLOSE_CONNECTION] => -2
[SWOOLE_DISPATCH_RESULT_USERFUNC_FALLBACK] => -3
[SWOOLE_TASK_TMPFILE] => 1
[SWOOLE_TASK_SERIALIZE] => 2
[SWOOLE_TASK_NONBLOCK] => 4
[SWOOLE_TASK_CALLBACK] => 8
[SWOOLE_TASK_WAITALL] => 16
[SWOOLE_TASK_COROUTINE] => 32
[SWOOLE_TASK_PEEK] => 64
[SWOOLE_TASK_NOREPLY] => 128
[SWOOLE_WORKER_BUSY] => 1
[SWOOLE_WORKER_IDLE] => 2
[SWOOLE_WORKER_EXIT] => 3
[SWOOLE_WEBSOCKET_STATUS_CONNECTION] => 1
[SWOOLE_WEBSOCKET_STATUS_HANDSHAKE] => 2
[SWOOLE_WEBSOCKET_STATUS_ACTIVE] => 3
[SWOOLE_WEBSOCKET_STATUS_CLOSING] => 4
[SWOOLE_WEBSOCKET_OPCODE_CONTINUATION] => 0
[SWOOLE_WEBSOCKET_OPCODE_TEXT] => 1
[SWOOLE_WEBSOCKET_OPCODE_BINARY] => 2
[SWOOLE_WEBSOCKET_OPCODE_CLOSE] => 8
[SWOOLE_WEBSOCKET_OPCODE_PING] => 9
[SWOOLE_WEBSOCKET_OPCODE_PONG] => 10
[SWOOLE_WEBSOCKET_FLAG_FIN] => 1
[SWOOLE_WEBSOCKET_FLAG_RSV1] => 4
[SWOOLE_WEBSOCKET_FLAG_RSV2] => 8
[SWOOLE_WEBSOCKET_FLAG_RSV3] => 16
[SWOOLE_WEBSOCKET_FLAG_MASK] => 32
[SWOOLE_WEBSOCKET_FLAG_COMPRESS] => 2
[SWOOLE_WEBSOCKET_CLOSE_NORMAL] => 1000
[SWOOLE_WEBSOCKET_CLOSE_GOING_AWAY] => 1001
[SWOOLE_WEBSOCKET_CLOSE_PROTOCOL_ERROR] => 1002
[SWOOLE_WEBSOCKET_CLOSE_DATA_ERROR] => 1003
[SWOOLE_WEBSOCKET_CLOSE_STATUS_ERROR] => 1005
[SWOOLE_WEBSOCKET_CLOSE_ABNORMAL] => 1006
[SWOOLE_WEBSOCKET_CLOSE_MESSAGE_ERROR] => 1007
[SWOOLE_WEBSOCKET_CLOSE_POLICY_ERROR] => 1008
[SWOOLE_WEBSOCKET_CLOSE_MESSAGE_TOO_BIG] => 1009
[SWOOLE_WEBSOCKET_CLOSE_EXTENSION_MISSING] => 1010
[SWOOLE_WEBSOCKET_CLOSE_SERVER_ERROR] => 1011
[SWOOLE_WEBSOCKET_CLOSE_TLS] => 1015
[WEBSOCKET_STATUS_CONNECTION] => 1
[WEBSOCKET_STATUS_HANDSHAKE] => 2
[WEBSOCKET_STATUS_FRAME] => 3
[WEBSOCKET_STATUS_ACTIVE] => 3
[WEBSOCKET_STATUS_CLOSING] => 4
[WEBSOCKET_OPCODE_CONTINUATION] => 0
[WEBSOCKET_OPCODE_TEXT] => 1
[WEBSOCKET_OPCODE_BINARY] => 2
[WEBSOCKET_OPCODE_CLOSE] => 8
[WEBSOCKET_OPCODE_PING] => 9
[WEBSOCKET_OPCODE_PONG] => 10
[WEBSOCKET_CLOSE_NORMAL] => 1000
[WEBSOCKET_CLOSE_GOING_AWAY] => 1001
[WEBSOCKET_CLOSE_PROTOCOL_ERROR] => 1002
[WEBSOCKET_CLOSE_DATA_ERROR] => 1003
[WEBSOCKET_CLOSE_STATUS_ERROR] => 1005
[WEBSOCKET_CLOSE_ABNORMAL] => 1006
[WEBSOCKET_CLOSE_MESSAGE_ERROR] => 1007
[WEBSOCKET_CLOSE_POLICY_ERROR] => 1008
[WEBSOCKET_CLOSE_MESSAGE_TOO_BIG] => 1009
[WEBSOCKET_CLOSE_EXTENSION_MISSING] => 1010
[WEBSOCKET_CLOSE_SERVER_ERROR] => 1011
[WEBSOCKET_CLOSE_TLS] => 1015
[OPENSWOOLE_PGSQL_ASSOC] => 1
[OPENSWOOLE_PGSQL_NUM] => 2
[OPENSWOOLE_PGSQL_BOTH] => 3

Socket predefined constants

[AF_UNIX] => 1
[AF_INET] => 2
[AF_INET6] => 30
[SOCK_STREAM] => 1
[SOCK_DGRAM] => 2
[SOCK_RAW] => 3
[SOCK_SEQPACKET] => 5
[SOCK_RDM] => 4
[MSG_OOB] => 1
[MSG_WAITALL] => 64
[MSG_CTRUNC] => 32
[MSG_TRUNC] => 16
[MSG_PEEK] => 2
[MSG_DONTROUTE] => 4
[MSG_EOR] => 8
[MSG_EOF] => 256
[MSG_NOSIGNAL] => 524288
[MSG_DONTWAIT] => 128
[SO_DEBUG] => 1
[SO_REUSEADDR] => 4
[SO_REUSEPORT] => 512
[SO_KEEPALIVE] => 8
[SO_DONTROUTE] => 16
[SO_LINGER] => 128
[SO_BROADCAST] => 32
[SO_OOBINLINE] => 256
[SO_SNDBUF] => 4097
[SO_RCVBUF] => 4098
[SO_SNDLOWAT] => 4099
[SO_RCVLOWAT] => 4100
[SO_SNDTIMEO] => 4101
[SO_RCVTIMEO] => 4102
[SO_TYPE] => 4104
[SO_ERROR] => 4103
[SOL_SOCKET] => 65535
[SOMAXCONN] => 128
[TCP_NODELAY] => 1
[PHP_NORMAL_READ] => 1
[PHP_BINARY_READ] => 2
[MCAST_JOIN_GROUP] => 12
[MCAST_LEAVE_GROUP] => 13
[IP_MULTICAST_IF] => 9
[IP_MULTICAST_TTL] => 10
[IP_MULTICAST_LOOP] => 11
[IPV6_MULTICAST_IF] => 9
[IPV6_MULTICAST_HOPS] => 10
[IPV6_MULTICAST_LOOP] => 11
[IPV6_V6ONLY] => 27
[SOCKET_EPERM] => 1
[SOCKET_ENOENT] => 2
[SOCKET_EINTR] => 4
[SOCKET_EIO] => 5
[SOCKET_ENXIO] => 6
[SOCKET_E2BIG] => 7
[SOCKET_EBADF] => 9
[SOCKET_EAGAIN] => 35
[SOCKET_ENOMEM] => 12
[SOCKET_EACCES] => 13
[SOCKET_EFAULT] => 14
[SOCKET_ENOTBLK] => 15
[SOCKET_EBUSY] => 16
[SOCKET_EEXIST] => 17
[SOCKET_EXDEV] => 18
[SOCKET_ENODEV] => 19
[SOCKET_ENOTDIR] => 20
[SOCKET_EISDIR] => 21
[SOCKET_EINVAL] => 22
[SOCKET_ENFILE] => 23
[SOCKET_EMFILE] => 24
[SOCKET_ENOTTY] => 25
[SOCKET_ENOSPC] => 28
[SOCKET_ESPIPE] => 29
[SOCKET_EROFS] => 30
[SOCKET_EMLINK] => 31
[SOCKET_EPIPE] => 32
[SOCKET_ENAMETOOLONG] => 63
[SOCKET_ENOLCK] => 77
[SOCKET_ENOSYS] => 78
[SOCKET_ENOTEMPTY] => 66
[SOCKET_ELOOP] => 62
[SOCKET_EWOULDBLOCK] => 35
[SOCKET_ENOMSG] => 91
[SOCKET_EIDRM] => 90
[SOCKET_ENOSTR] => 99
[SOCKET_ENODATA] => 96
[SOCKET_ETIME] => 101
[SOCKET_ENOSR] => 98
[SOCKET_EREMOTE] => 71
[SOCKET_ENOLINK] => 97
[SOCKET_EPROTO] => 100
[SOCKET_EMULTIHOP] => 95
[SOCKET_EBADMSG] => 94
[SOCKET_EUSERS] => 68
[SOCKET_ENOTSOCK] => 38
[SOCKET_EDESTADDRREQ] => 39
[SOCKET_EMSGSIZE] => 40
[SOCKET_EPROTOTYPE] => 41
[SOCKET_ENOPROTOOPT] => 42
[SOCKET_EPROTONOSUPPORT] => 43
[SOCKET_ESOCKTNOSUPPORT] => 44
[SOCKET_EOPNOTSUPP] => 102
[SOCKET_EPFNOSUPPORT] => 46
[SOCKET_EAFNOSUPPORT] => 47
[SOCKET_EADDRINUSE] => 48
[SOCKET_EADDRNOTAVAIL] => 49
[SOCKET_ENETDOWN] => 50
[SOCKET_ENETUNREACH] => 51
[SOCKET_ENETRESET] => 52
[SOCKET_ECONNABORTED] => 53
[SOCKET_ECONNRESET] => 54
[SOCKET_ENOBUFS] => 55
[SOCKET_EISCONN] => 56
[SOCKET_ENOTCONN] => 57
[SOCKET_ESHUTDOWN] => 58
[SOCKET_ETOOMANYREFS] => 59
[SOCKET_ETIMEDOUT] => 60
[SOCKET_ECONNREFUSED] => 61
[SOCKET_EHOSTDOWN] => 64
[SOCKET_EHOSTUNREACH] => 65
[SOCKET_EALREADY] => 37
[SOCKET_EINPROGRESS] => 36
[SOCKET_EDQUOT] => 69
[IPPROTO_IP] => 0
[IPPROTO_IPV6] => 41
[SOL_TCP] => 6
[SOL_UDP] => 17
[IPV6_UNICAST_HOPS] => 4
[AI_PASSIVE] => 1
[AI_CANONNAME] => 2
[AI_NUMERICHOST] => 4
[AI_V4MAPPED] => 2048
[AI_ALL] => 256
[AI_ADDRCONFIG] => 1024
[AI_NUMERICSERV] => 4096
[IPV6_RECVPKTINFO] => 61
[IPV6_PKTINFO] => 46
[IPV6_RECVHOPLIMIT] => 37
[IPV6_HOPLIMIT] => 47
[IPV6_RECVTCLASS] => 35
[IPV6_TCLASS] => 36
[SCM_RIGHTS] => 1