以下常量由此扩展定义,并且仅在扩展已编译到 PHP 中或在运行时动态加载时可用。
YAR_VERSION
(字符串)YAR_CLIENT_PROTOCOL_HTTP
(整数)YAR_OPT_PACKAGER
(整数)YAR_OPT_TIMEOUT
(整数)YAR_OPT_CONNECT_TIMEOUT
(整数)YAR_OPT_HEADER
(数组)YAR_PACKAGER_PHP
(字符串)YAR_PACKAGER_JSON
(字符串)YAR_ERR_OKEY
(整数)YAR_ERR_OUTPUT
(整数)YAR_ERR_TRANSPORT
(整数)YAR_ERR_REQUEST
(整数)YAR_ERR_PROTOCOL
(整数)YAR_ERR_PACKAGER
(整数)YAR_ERR_EXCEPTION
(整数)