安装/配置

目录

需求

此扩展需要 libxml PHP 扩展。这表示需要使用 --enable-libxml,尽管这将隐式完成因为 libxml 是缺省开启的。

安装

To enable SOAP support, configure PHP with --enable-soap.

运行时配置

这些函数的行为受 php.ini 中的设置影响。

名字默认可修改范围更新日志
soap.wsdl_cache_enabled1PHP_INI_ALL
soap.wsdl_cache_dir/tmpPHP_INI_ALL
soap.wsdl_cache_ttl86400PHP_INI_ALL
soap.wsdl_cache1PHP_INI_ALL
soap.wsdl_cache_limit5PHP_INI_ALL

这是配置指令的简短说明。

soap.wsdl_cache_enabled integer
Enables or disables the WSDL caching feature.

soap.wsdl_cache_dir string
Sets the directory name where the SOAP extension will put cache files.

soap.wsdl_cache_ttl integer
Sets the number of seconds (time to live) that cached files will be used instead of the originals.

soap.wsdl_cache integer
If soap.wsdl_cache_enabled is on, this setting determines the type of caching. It can be any of: WSDL_CACHE_NONE (0), WSDL_CACHE_DISK (1), WSDL_CACHE_MEMORY (2) or WSDL_CACHE_BOTH (3). This can also be set via the options array in the SoapClient or SoapServer constructor.

soap.wsdl_cache_limit integer
Maximum number of in-memory cached WSDL files. Adding further files into a full memory cache will delete the oldest files from it.

资源类型

此扩展没有定义资源类型。