array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'migration72.other-changes.php', 1 => '其他变更', ), 'up' => array ( 0 => 'migration72.php', 1 => '从 PHP 7.1.x 移植到 PHP 7.2.x', ), 'prev' => array ( 0 => 'migration72.deprecated.php', 1 => 'PHP 7.2.x 中废弃的功能', ), 'next' => array ( 0 => 'migration71.php', 1 => '从 PHP 7.0.x 移植到 PHP 7.1.x', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'zh', 'path' => 'appendices/migration72/other-changes.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
utf8_encode() 和 utf8_decode() 现在已经作为字符串处理函数移到标准扩展中, 在此之前需要启用 XML 扩展才能使用。
mail() 和 mb_send_mail() 函数中的 $additional_headers 参数变更为 array,此前为 string。
DBA 扩展现在已经支持 LMDB。
--with-pdo-oci
配置选项不再需要指定 Oracle Instant Client 的版本号数字。
--enable-gd-native-ttf
配置参数。自 PHP 5.5.0 以来就已经不再使用。
--with-config-profile
配置参数。
可用于保存细节配置,就像是神奇的
config.nice.bat 文件。
MCrypt 扩展从内核移动到 PECL。 考虑到 mcrypt 库自 2007 年以来未见任何更新,不再建议使用。 代替品即可以用 OpenSSL,也可以用 Sodium。
传递给 session_module_name() 函数的模块名不允许为
"user"
,将会抛出一个
E_RECOVERABLE_ERROR
,之前版本会忽略这个问题。