2024 年日本 PHP 研討會

預先定義的常數

以下常數由此擴充定義,並且只有在擴充已編譯到 PHP 中或在執行階段動態載入時才會可用。

SOAP 常數
常數 說明
SOAP_1_1 (整數) 1 當作為 soap_version 選項傳遞給 SoapServer::__construct()SoapClient::__construct() 時,指定使用 SOAP 1.1。
SOAP_1_2 (整數) 2 當作為 soap_version 選項傳遞給 SoapServer::__construct()SoapClient::__construct() 時,指定使用 SOAP 1.2。
SOAP_PERSISTENCE_SESSION (整數) 1  
SOAP_PERSISTENCE_REQUEST (整數 (int)) 2  
SOAP_FUNCTIONS_ALL (整數 (int)) 999  
SOAP_ENCODED (整數 (int)) 1 當作為 use 選項傳遞給 SoapClient::__construct() 時,指定使用 SOAP 編碼。
SOAP_LITERAL (整數 (int)) 2 當作為 use 選項傳遞給 SoapClient::__construct() 時,指定使用服務特定的編碼。
SOAP_RPC (整數 (int)) 1 當作為 style 選項傳遞給 SoapClient::__construct() 時,指定使用 RPC 風格的綁定。
SOAP_DOCUMENT (整數 (int)) 2 當作為 style 選項傳遞給 SoapClient::__construct() 時,指定使用文件綁定。
SOAP_ACTOR_NEXT (整數 (int)) 1  
SOAP_ACTOR_NONE (整數 (int)) 2  
SOAP_ACTOR_UNLIMATERECEIVER (整數 (int)) 3  
SOAP_COMPRESSION_ACCEPT (整數 (int)) 32 當作為 compression 選項 的一部分傳遞給 SoapClient::__construct() 時,指定使用「Accept-Encoding」標頭。
SOAP_COMPRESSION_GZIP (整數 (int)) 0 當作為 compression 選項 的一部分傳遞給 SoapClient::__construct() 時,指定使用 gzip 壓縮。
SOAP_COMPRESSION_DEFLATE (整數 (int)) 16 當作為 compression 選項 的一部分傳遞給 SoapClient::__construct() 時,指定使用 deflate 壓縮。
SOAP_AUTHENTICATION_BASIC (整數 (int)) 0 當作為 authentication 選項傳遞給 SoapClient::__construct() 時,指定使用 HTTP 基本驗證。
SOAP_AUTHENTICATION_DIGEST (整數 (int)) 1 當作為 authentication 選項傳遞給 SoapClient::__construct() 時,指定使用 HTTP 摘要式驗證。
SOAP_SSL_METHOD_TLS (整數 (int)) 0 與已棄用的 ssl_method 選項 搭配使用於 SoapClient::__construct()
SOAP_SSL_METHOD_SSLv2 (整數 (int)) 1 與已棄用的 ssl_method 選項 搭配使用於 SoapClient::__construct()
SOAP_SSL_METHOD_SSLv3 (整數 (int)) 2 與已棄用的 ssl_method 選項 搭配使用於 SoapClient::__construct()
SOAP_SSL_METHOD_SSLv23 (整數 (int)) 3 與已棄用的 ssl_method 選項 搭配使用於 SoapClient::__construct()
UNKNOWN_TYPE (整數 (int)) 999998  
XSD_STRING (整數 (int)) 101  
XSD_BOOLEAN (整數 (int)) 102  
XSD_DECIMAL (整數 (int)) 103  
XSD_FLOAT (整數 (int)) 104  
XSD_DOUBLE (整數 (int)) 105  
XSD_DURATION (整數 (int)) 106  
XSD_DATETIME (整數 (int)) 107  
XSD_TIME (整數 (int)) 108  
XSD_DATE (整數 (int)) 109  
XSD_GYEARMONTH (整數 (int)) 110  
XSD_GYEAR (整數 (int)) 111  
XSD_GMONTHDAY (整數 (int)) 112  
XSD_GDAY (整數 (int)) 113  
XSD_GMONTH (整數 (int)) 114  
XSD_HEXBINARY (整數 (int)) 115  
XSD_BASE64BINARY (整數 (int)) 116  
XSD_ANYURI (整數 (int)) 117  
XSD_QNAME (整數 (int)) 118  
XSD_NOTATION (整數 (int)) 119  
XSD_NORMALIZEDSTRING (整數 (int)) 120  
XSD_TOKEN (整數 (int)) 121  
XSD_LANGUAGE (整數 (int)) 122  
XSD_NMTOKEN (整數 (int)) 123  
XSD_NAME (整數 (int)) 124  
XSD_NCNAME (整數 (int)) 125  
XSD_ID (整數 (int)) 126  
XSD_IDREF (整數 (int)) 127  
XSD_IDREFS (整數 (int)) 128  
XSD_ENTITY (整數 (int)) 129  
XSD_ENTITIES (整數 (int)) 130  
XSD_INTEGER (整數 (int)) 131  
XSD_NONPOSITIVEINTEGER (整數 (int)) 132  
XSD_NEGATIVEINTEGER (整數 (int)) 133  
XSD_LONG (整數 (int)) 134  
XSD_INT (整數 (int)) 135  
XSD_SHORT (整數 (int)) 136  
XSD_BYTE (整數 (int)) 137  
XSD_NONNEGATIVEINTEGER (整數 (int)) 138  
XSD_UNSIGNEDLONG (整數 (int)) 139  
XSD_UNSIGNEDINT (整數 (int)) 140  
XSD_UNSIGNEDSHORT (整數 (int)) 141  
XSD_UNSIGNEDBYTE (整數 (int)) 142  
XSD_POSITIVEINTEGER (整數 (int)) 143  
XSD_NMTOKENS (整數 (int)) 144  
XSD_ANYTYPE (整數 (int)) 145  
XSD_ANYXML (整數 (int)) 147  
APACHE_MAP (整數 (int)) 200  
SOAP_ENC_OBJECT (整數 (int)) 301  
SOAP_ENC_ARRAY (整數 (int)) 300  
XSD_1999_TIMEINSTANT (整數 (int)) 401  
XSD_NAMESPACE (字串 (string)) http://www.w3.org/2001/XMLSchema  
XSD_1999_NAMESPACE (字串 (string)) http://www.w3.org/1999/XMLSchema  
SOAP_SINGLE_ELEMENT_ARRAYS (整數 (int)) 1 搭配 SoapClient::__construct() features 選項 使用。
SOAP_WAIT_ONE_WAY_CALLS (整數 (int)) 2 搭配 SoapClient::__construct() features 選項 使用。
SOAP_USE_XSI_ARRAY_TYPE (整數 (int)) 4 搭配 SoapClient::__construct() features 選項 使用。
WSDL_CACHE_NONE (整數 (int)) 0 soap.wsdl_cache 設定選項或 SoapClient::__construct()SoapServer::__construct()wsdl_cache 選項中使用時,停用 WSDL 快取。
WSDL_CACHE_DISK (整數 (int)) 1 soap.wsdl_cache 設定選項或 SoapClient::__construct()SoapServer::__construct()wsdl_cache 選項中使用時,指定僅使用磁碟上的 WSDL 快取。
WSDL_CACHE_MEMORY (整數 (int)) 2 soap.wsdl_cache 設定選項或 SoapClient::__construct()SoapServer::__construct()wsdl_cache 選項中使用時,指定僅使用記憶體中的 WSDL 快取。
WSDL_CACHE_BOTH (整數 (int)) 3 soap.wsdl_cache 設定選項或 SoapClient::__construct()SoapServer::__construct()wsdl_cache 選項中使用時,指定同時使用磁碟上和記憶體中的 WSDL 快取。
新增註釋

使用者貢獻的註釋

此頁面沒有使用者貢獻的註釋。
To Top