PHP 模塊從 php7_module
重命名為
php_module
。
可通過新參數(shù) filter
來過濾 ReflectionClass::getConstants() 和
ReflectionClass::getReflectionConstants() 的返回結(jié)果。
新增三個常量,搭配使用:
ReflectionClassConstant::IS_PUBLIC
ReflectionClassConstant::IS_PROTECTED
ReflectionClassConstant::IS_PRIVATE
ZipArchive::addGlob() 和
ZipArchive::addPattern() 方法中
options
數(shù)組參數(shù)可接受更多的值:
flags
comp_method
comp_flags
env_method
enc_password
ZipArchive::addEmptyDir()、ZipArchive::addFile()、
ZipArchive::addFromString()
方法新增 flags
參數(shù)。
可用于名稱編碼
(ZipArchive::FL_ENC_*
) 與條目(entry)替換
(ZipArchive::FL_OVERWRITE
)。
ZipArchive::extractTo() 現(xiàn)在會儲存文件的修改時間。
現(xiàn)在 CURL 擴展要求 libcurl 版本至少為 7.29.0。
移除了 curl_version() 廢棄的參數(shù) version
。
現(xiàn)在 DatePeriod 實現(xiàn)(implements)了 IteratorAggregate (之前是 Traversable)。
現(xiàn)在 DOMNamedNodeMap 與 DOMNodeList 實現(xiàn)(implements)了 IteratorAggregate (之前是 Traversable)。
現(xiàn)在 IntlBreakIterator 與 ResourceBundle 實現(xiàn)(implements)了 IteratorAggregate (之前是 Traversable)。
現(xiàn)在環(huán)境允許時,enchant 會默認使用 libenchant-2。 仍然支持 libenchant 1,但已經(jīng)廢棄,并將在未來移除。
imagepolygon()、
imageopenpolygon()、imagefilledpolygon()
的參數(shù) num_points
現(xiàn)在為可選參數(shù)。
這些函數(shù)可用三或四個參數(shù)去調(diào)用。
省略參數(shù)時,會按 count($points)/2
計算。
新增函數(shù) imagegetinterpolation(),可獲取當前的插值(interpolation)。
現(xiàn)在無法禁用 JSON 擴展,將是任意 PHP 版本的內(nèi)置功能,類似 date 擴展。
更新 Unicode 數(shù)據(jù)表版本到 13.0.0。
現(xiàn)在 PDOStatement 實現(xiàn)(implements)了 IteratorAggregate (之前是 Traversable)。
現(xiàn)在要求 libxml 最小版本為 2.9.0。 這代表著確保了默認情況下禁用了外部實體加載(external entity loading)的功能。 無需額外步驟即可防范 XML 外部實體注入攻擊(XXE attacks)。
未使用 mysqlnd 時(也是默認且推薦的做法), 支持的最小 libmysqlclient 版本為 5.5。
現(xiàn)在 mysqli_result 實現(xiàn)(implements)了 IteratorAggregate (之前是 Traversable)。
PGSQL 與 PDO PGSQL 擴展需要 libpq 的版本號至少為 9.1。
在交互提示開始之前調(diào)用 readline_completion_function() (例如在 auto_prepend_file 中), 將重寫默認的交互輸入補全函數(shù)。 之前,只有交互提示(interactive prompt)開始后, readline_completion_function() 才會運行。
現(xiàn)在 SimpleXMLElement 實現(xiàn)(implements)了 RecursiveIterator 并吸收了 SimpleXMLIterator 的功能。 SimpleXMLIterator 是 SimpleXMLElement 的一個空擴展。
com.dotnet_version 是一個新的 INI 指令,用于選擇 dotnet 對象的 .NET framework 版本。
zend.exception_string_param_max_len 是一個新的 INI 指令,用于設置字符串化的調(diào)用棧(stack strace)的最大字符串長度。
不再支持 EBCDIC targets,雖然它不太可能還在當初的地方繼續(xù)運行。
opcache 擴展新增了即時編譯(JIT) 支持。
array_slice() 用于沒有空隙的數(shù)組時, 將不會掃描整個數(shù)組去查找開始的位移(offset)。 在 offset 較大、長度較小時,會顯著減少函數(shù)的運行時間。
當本地化 LC_CTYPE
為 "C"
時(也是默認值),
strtolower() 會使用 SIMD 的實現(xiàn)。