A.2. PHP 扩展
下面列出了所有 PHP 内建支持的扩展,以及它们在 Zend Framework 中如何应用。 这个可以帮助了解哪个扩展需要在应用中使用。 不是每一个被 Zend Framework 使用的扩展都要应用在程序中。
使用方式“依赖”表示当扩展不可用时,组件或者类也不可使用。 使用方式“可选”表示当扩展不可用时,组件或者类自动使用代替方案。
表 A.1. Zend Framework 使用的 PHP 扩展
| 扩展 | 使用方式 | 使用扩展的 Zend Framework 组件 |
|---|---|---|
apc |
依赖 | Zend_Cache_Backend_Apc |
bcmath |
可选 | Zend_Locale_Math |
bitset |
可选 | Zend_Search_Lucene |
bz2 |
-- | |
calendar |
-- | |
com_dotnet |
-- | |
ctype |
依赖 |
Zend_Auth_Adapter_Http,
Zend_Gdata_App,
Zend_Http_Client,
Zend_Pdf,
Zend_Rest_Client,
Zend_Rest_Server,
Zend_Search_Lucene,
Zend_Uri,
Zend_Validate
|
curl |
依赖 | Zend_Http_Client_Adapter_Curl |
date |
--- | |
dba |
-- | |
dbase |
-- | |
DOM |
依赖 |
Zend_Feed,
Zend_Gdata,
Zend_Log_Formatter_Xml,
Zend_Rest_Server,
Zend_Search_Lucene,
Zend_Service_Amazon,
Zend_Service_Delicious,
Zend_Service_Flickr,
Zend_Service_Simpy,
Zend_Service_Yahoo,
Zend_XmlRpc
|
exif |
-- | |
fbsql |
-- | |
fdf |
-- | |
filter |
-- | |
ftp |
-- | |
gd |
依赖 | Zend_Pdf |
gettext |
-- | |
gmp |
-- | |
hash |
依赖 | Zend_Auth_Adapter_Http |
ibm_db2 |
依赖 | Zend_Db_Adapter_Db2 |
iconv |
依赖 |
Zend_Locale_Format,
Zend_mime_Decode,
Zend_Pdf,
Zend_Search_Lucene,
Zend_Service_Audioscrobbler,
Zend_Service_Flickr,
Zend_XmlRpc_Client
|
imap |
-- | |
informix |
-- | |
interbase |
依赖 | Zend_Db_Adapter_Firebird |
json |
可选 | Zend_Json |
ldap |
-- | |
libxml |
依赖 |
DOM,
SimpleXML,
XSLT
|
mbstring |
依赖 | Zend_Feed |
mcrypt |
-- | |
memcache |
依赖 | Zend_Cache_Backend_Memcached |
mhash |
-- | |
mime_magic |
依赖 | Zend_Http_Client |
ming |
-- | |
msql |
-- | |
mssql |
-- | |
mysql |
-- | |
mysqli |
依赖 | Zend_Db_Adapter_Mysqli |
ncurses |
-- | |
oci8 |
依赖 | Zend_Db_Adapter_oracle |
odbc |
-- | |
openssl |
-- | |
pcntl |
-- | |
pcre |
依赖 | Virtually all components |
pdo |
依赖 | All PDO database adapters |
pdo_dblib |
-- | |
pdo_firebird |
-- | |
pdo_mssql |
依赖 | Zend_Db_Adapter_Pdo_Mssql |
pdo_mysql |
依赖 | Zend_Db_Adapter_Pdo_Mysql |
pdo_oci |
依赖 | Zend_Db_Adapter_Pdo_Oci |
pdo_pgsql |
依赖 | Zend_Db_Adapter_Pdo_Pgsql |
pdo_sqlite |
依赖 | Zend_Db_Adapter_Pdo_Sqlite |
pgsql |
--- | |
posix |
可选 | Zend_Mail |
pspell |
--- | |
readline |
--- | |
recode |
--- | |
Reflection |
依赖 |
Zend_Controller,
Zend_Filter,
Zend_Filter_Input,
Zend_Json,
Zend_Log,
Zend_Rest_Server,
Zend_Server_Reflection,
Zend_Validate,
Zend_View,
Zend_XmlRpc_Server
|
session |
依赖 |
Zend_Controller_Action_Helper_Redirector,
Zend_Session
|
shmop |
--- | |
SimpleXML |
依赖 |
Zend_Config_Xml,
Zend_Feed,
Zend_Rest_Client,
Zend_Service_Audioscrobbler,
Zend_XmlRpc
|
soap |
依赖 | Zend_Service_StrikeIron |
sockets |
--- | |
SPL |
依赖 | Virtually all components |
SQLite |
依赖 | Zend_Cache_Backend_Sqlite |
standard |
依赖 | Virtually all components |
sybase |
--- | |
| sysvmsg | --- | |
| sysvsem | --- | |
| sysvshm | --- | |
tidy |
--- | |
tokenizer |
--- | |
wddx |
--- | |
xml |
依赖 |
Zend_Translate_Adapter_Qt,
Zend_Translate_Adapter_Tmx,
Zend_Translate_Adapter_Xliff
|
XMLReader |
--- | |
xmlrpc |
--- | |
XMLWriter |
--- | |
xsl |
--- | |
zip |
--- | |
zlib |
依赖 |
Zend_Pdf,
Memcache
|