Константи, описані нижче — визначені цим розширенням, тож доступні, коли розширення скомпільовано як частина PHP або динамічно підключене під час виконання.
flags
for
stream_socket_client()
STREAM_CLIENT_ASYNC_CONNECT
(int)
STREAM_CLIENT_CONNECT
flag.
STREAM_CLIENT_CONNECT
(int)
STREAM_CLIENT_PERSISTENT
(int)
flags
for
stream_socket_server()
STREAM_SERVER_BIND
(int)
STREAM_SERVER_LISTEN
(int)
STREAM_SERVER_BIND
flag to start listening to the socket.
Connection-orientated transports (such as TCP) must use this flag,
otherwise the server socket will not be enabled.
Using this flag for connect-less transports (such as UDP) is an error.
mode
parameter of
stream_socket_shutdown()
STREAM_SHUT_RD
(int)
STREAM_SHUT_WR
(int)
STREAM_SHUT_RDWR
(int)
Those constants are used for the flags
parameter of the
stream_socket_recvfrom() and
stream_socket_sendto() functions.
STREAM_OOB
(int)
out-of-band
) data.
STREAM_PEEK
(int)
Зауваження: Is not a valid flag for stream_socket_sendto().
Those constants are used for the stream_filter_append() and stream_filter_prepend() functions.
STREAM_FILTER_READ
(int)
STREAM_FILTER_WRITE
(int)
STREAM_FILTER_ALL
(int)
STREAM_FILTER_READ | STREAM_FILTER_WRITE
.
STREAM_CRYPTO_METHOD_ANY_CLIENT
(int)
STREAM_CRYPTO_METHOD_SSLv2_CLIENT
(int)
STREAM_CRYPTO_METHOD_SSLv3_CLIENT
(int)
STREAM_CRYPTO_METHOD_SSLv23_CLIENT
(int)
STREAM_CRYPTO_METHOD_TLS_CLIENT
(int)
STREAM_CRYPTO_METHOD_TLSv1_0_CLIENT
(int)
STREAM_CRYPTO_METHOD_TLSv1_1_CLIENT
(int)
STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT
(int)
STREAM_CRYPTO_METHOD_TLSv1_3_CLIENT
(int)
STREAM_CRYPTO_METHOD_ANY_SERVER
(int)
STREAM_CRYPTO_METHOD_SSLv2_SERVER
(int)
STREAM_CRYPTO_METHOD_SSLv3_SERVER
(int)
STREAM_CRYPTO_METHOD_SSLv23_SERVER
(int)
STREAM_CRYPTO_METHOD_TLS_SERVER
(int)
STREAM_CRYPTO_METHOD_TLSv1_0_SERVER
(int)
STREAM_CRYPTO_METHOD_TLSv1_1_SERVER
(int)
STREAM_CRYPTO_METHOD_TLSv1_2_SERVER
(int)
STREAM_CRYPTO_METHOD_TLSv1_3_SERVER
(int)
STREAM_CRYPTO_PROTO_SSLv3
(int)
STREAM_CRYPTO_METHOD_SSLv3_SERVER
.
STREAM_CRYPTO_PROTO_TLSv1_0
(int)
STREAM_CRYPTO_METHOD_TLSv1_0_SERVER
.
STREAM_CRYPTO_PROTO_TLSv1_1
(int)
STREAM_CRYPTO_METHOD_TLSv1_1_SERVER
.
STREAM_CRYPTO_PROTO_TLSv1_2
(int)
STREAM_CRYPTO_METHOD_TLSv1_2_SERVER
.
STREAM_CRYPTO_PROTO_TLSv1_3
(int)
STREAM_CRYPTO_METHOD_TLSv1_3_SERVER
.
STREAM_MUST_SEEK
(int)
STREAM_IGNORE_URL
(int)
Зауваження: Not all constants might be available on a given system.
domain
parameter
STREAM_PF_INET
(int)
STREAM_PF_INET6
(int)
STREAM_PF_UNIX
(int)
type
parameter
STREAM_SOCK_DGRAM
(int)
STREAM_SOCK_RAW
(int)
STREAM_SOCK_RDM
(int)
STREAM_SOCK_SEQPACKET
(int)
STREAM_SOCK_STREAM
(int)
protocol
parameter
STREAM_IPPROTO_ICMP
(int)
STREAM_IPPROTO_IP
(int)
STREAM_IPPROTO_RAW
(int)
STREAM_IPPROTO_TCP
(int)
STREAM_IPPROTO_UDP
(int)
notification_code
parameter
STREAM_NOTIFY_RESOLVE
(int)
severity
for an indication of which happened.
STREAM_NOTIFY_CONNECT
(int)
STREAM_NOTIFY_AUTH_REQUIRED
(int)
severity
level of
STREAM_NOTIFY_SEVERITY_ERR
.
STREAM_NOTIFY_MIME_TYPE_IS
(int)
mime-type
of resource has been identified.
Refer to message
for a description of the
discovered type.
STREAM_NOTIFY_FILE_SIZE_IS
(int)
size
of the resource has been discovered.
STREAM_NOTIFY_REDIRECTED
(int)
message
.
STREAM_NOTIFY_PROGRESS
(int)
bytes_transferred
and possibly
bytes_max
as well.
STREAM_NOTIFY_COMPLETED
(int)
STREAM_NOTIFY_FAILURE
(int)
message
and
message_code
for details.
STREAM_NOTIFY_AUTH_RESULT
(int)
severity
parameter
STREAM_NOTIFY_SEVERITY_INFO
(int)
STREAM_NOTIFY_SEVERITY_WARN
(int)
STREAM_NOTIFY_SEVERITY_ERR
(int)
STREAM_IS_URL
(int)
cast_as
parameter of
streamWrapper::stream_cast()
STREAM_CAST_FOR_SELECT
(int)
STREAM_CAST_AS_STREAM
(int)
option
parameter of
streamWrapper::stream_metadata()
STREAM_META_TOUCH
(int)
STREAM_META_OWNER
(int)
STREAM_META_OWNER_NAME
(int)
STREAM_META_GROUP
(int)
STREAM_META_GROUP_NAME
(int)
STREAM_META_ACCESS
(int)
STREAM_MKDIR_RECURSIVE
(int)
options
parameter of
streamWrapper::stream_open()
STREAM_USE_PATH
(int)
STREAM_REPORT_ERRORS
(int)
option
parameter of
streamWrapper::stream_set_option()
STREAM_OPTION_BLOCKING
(int)
STREAM_OPTION_READ_BUFFER
(int)
STREAM_BUFFER_NONE
(int)
STREAM_BUFFER_LINE
(int)
STREAM_BUFFER_FULL
(int)
STREAM_OPTION_READ_TIMEOUT
(int)
STREAM_OPTION_WRITE_BUFFER
(int)
STREAM_OPTION_READ_BUFFER
for valid buffer options.
flags
parameter of
streamWrapper::url_stat()
STREAM_URL_STAT_LINK
(int)
STREAM_URL_STAT_QUIET
(int)
PSFS_PASS_ON
(int)
$out
.
PSFS_FEED_ME
(int)
$out
.
(i.e. No data available.)
PSFS_ERR_FATAL
(int)
PSFS_FLAG_NORMAL
(int)
PSFS_FLAG_FLUSH_INC
(int)
PSFS_FLAG_FLUSH_CLOSE
(int)