From 999d6d6602200f53858ce2468f36ee4d5323f7ce Mon Sep 17 00:00:00 2001 From: Luffy Date: Fri, 31 Jul 2026 14:41:23 +0800 Subject: [PATCH 1/2] Remove unused entities from language-snippets.ent --- bookinfo.xml | 4 +- language-snippets.ent | 364 +----------------------------------------- 2 files changed, 2 insertions(+), 366 deletions(-) diff --git a/bookinfo.xml b/bookinfo.xml index 0d8208d0b..c539ef062 100644 --- a/bookinfo.xml +++ b/bookinfo.xml @@ -1,11 +1,9 @@ - + - &frontpage.authors; - &frontpage.editors; - - - 4.2.0随机数发生器自动进行播种。'> - -自 PHP 5.3.0 -起,已经废弃此特性。强烈建议不要应用此特性。'> - -自 PHP 5.3.0 -起,已经废弃此函数。强烈建议不要应用此函数。'> - - - - + 本函数并不会生成安全加密的值,并且不可用于加密或者要求返回值不可猜测的目的。 @@ -95,7 +83,6 @@ an underscore, but instead fails to extract such files.'> 除了函数名,含有对象引用的数组和方法名也可以作为参数。'> - 在函数中注册有多个回调内容时(如使用 call_user_funccall_user_func_array),如在前一个回调中有未捕获的异常,其后的将不再被调用。'> @@ -104,11 +91,6 @@ an underscore, but instead fails to extract such files.'> the current values will also be returned if the arguments are passed by value.'> -因为函数依赖于当前作用域以确定参数的细节,所以在 -5.3.0 以前的版本中不能用作函数的参数。如必须传递此值时,可将结果赋与一个变量,然后用此变量进行传递。'> - - - As of PHP 8.0.0, the func_*() family of functions is intended to be mostly transparent with regard to named arguments, by treating the arguments as if they were all passed positionally, @@ -231,7 +213,6 @@ linkend="book.outcontrol">输出控制函数来捕获当前函数的输 请参见'> - 当传入用户提供的数据到本函数时,应使用 @@ -249,45 +230,20 @@ PHP 版本中发生变化而不另行通知。使用本扩展应自行承担风 -自 PHP 5.3.0 -起,已经废弃此特性。强烈建议不要应用此特性。'> - - - 本特性已自 PHP 5.3.0 起废弃并将自 PHP 5.4.0 起移除'> - -本函数已自 PHP 5.3.0 起废弃并将自 -PHP 5.4.0 起移除'> - -本特性已自 PHP 5.5.0 -起废弃。强烈建议不要使用本特性。'> - - 本特性已自 PHP 5.6.0 起废弃。强烈建议不要使用本特性。'> -本特性已自 PHP 7.0.0 -起废弃。强烈建议不要使用本特性。'> - - 本特性已自 PHP 7.1.0 起废弃。强烈建议不要使用本特性。'> -本函数已自 PHP 7.1.0 -起废弃。强烈建议不要使用本函数。'> - - 此函数自 PHP 7.0.0 起弃用且 PHP 8.0.0 @@ -304,17 +260,11 @@ PHP 7.2.0 起移除。强烈建议不要使用本函数。< xmlns="http://docbook.org/ns/docbook">本特性已自 PHP 7.2.0 起废弃。强烈建议不要使用本特性。'> - 本特性自 PHP 7.2.0 起废弃,并且自 PHP 8.0.0 起被移除。 强烈建议不要使用本特性。'> -本函数已自 PHP 7.2.0 -起废弃。强烈建议不要使用本函数。'> - - 本函数已自 PHP 7.2.0 起被废弃,并自 PHP 8.0.0 起被移除。 @@ -325,26 +275,15 @@ xmlns="http://docbook.org/ns/docbook">本特性已自 PHP 7.3.0 起废弃。强烈建议不要使用本特性。'> -本函数已自 PHP 7.3.0 -起废弃。强烈建议不要使用本函数。'> - - 本函数已自 PHP 7.3.0 起弃用,自 PHP 8.0.0 起移除。强烈建议不要依赖本函数。'> -本特性已自 PHP 7.4.0 -起废弃。强烈建议不要使用本特性。'> - - 本函数已自 PHP 7.4.0 起废弃。强烈建议不要使用本函数。'> - 本函数已自 PHP 7.4.0 起弃用,自 PHP 8.0.0 起移除。强烈建议不要依赖本函数。'> @@ -384,11 +323,6 @@ xmlns="http://docbook.org/ns/docbook">此函数自 PHP 8.3.0 起弃用。强烈建议不要应用此函数。'> -本特性已自 PHP 8.4.0 -起废弃。强烈建议不要使用本特性。'> - - 此函数自 PHP 8.4.0 起弃用。强烈建议不要应用此函数。'> @@ -407,54 +341,12 @@ xmlns="http://docbook.org/ns/docbook">此函数自 PHP 8.5.0 将肯定会在未来被移除。'> -自 PHP 5.3.0 -起,已经废弃移除此函数。'> - - -自 PHP 5.5.0 -起,已经废弃移除此函数。'> - - -自 PHP 5.3.0 -起,已经废弃此别名。强烈建议不要应用此别名。'> - - - -自PHP 5.4.0 起,此函数已经被废弃。强烈建议不要使用此函数。'> - - 自 PHP 5.4.0 起,已经废弃此别名。强烈建议不要应用此别名。'> - -自PHP 5.5.0 起,此函数已经被废弃。强烈建议不要使用此函数。'> - - -This feature was -DEPRECATED in PHP 5.5.0, and REMOVED as of PHP 7.0.0.'> - -This function was -DEPRECATED in PHP 5.5.0, and REMOVED as of PHP 7.0.0.'> - -This function was -DEPRECATED in PHP 4.1.0, and REMOVED as of PHP 7.0.0.'> - -This function was -DEPRECATED in PHP 5.3.0, and REMOVED as of PHP 7.0.0.'> - This alias was DEPRECATED in PHP 5.3.0, and REMOVED as of PHP 7.0.0.'> - -该功能已在 PHP 5.6.0 中 -废弃 ,并在 PHP 7.0.0 中 -移除'> - 该函数已在 PHP 7.0.0 中 移除'> @@ -519,82 +411,14 @@ linkend="book.imap">IMAP,recode, - - - 本类的文档还在编写中,暂时只有属性和方法列表供参考。 - - -'> - - 本函数还未编写文档,仅有参数列表。'> - - - This function was DEPRECATED in PHP 4.1.0, and - REMOVED in PHP 7.0.0. - - - Alternatives to this function include: - -'> - - - This feature was DEPRECATED in PHP 5.3.0, and - REMOVED in PHP 7.0.0. - - - Alternatives to this feature include: - -'> - - - This function was DEPRECATED in PHP 5.3.0, and - REMOVED in PHP 7.0.0. - - - Alternatives to this function include: - -'> - - - This function was DEPRECATED in PHP 5.5.0, and - REMOVED in PHP 7.0.0. - - - Alternatives to this function include: - -'> - - - This feature was REMOVED in PHP 7.0.0. - - - Alternatives to this feature include: - -'> - - - This function was REMOVED in PHP 7.0.0. - - - Alternatives to this function include: - -'> - 此功能自 PHP 7.1.0 起弃用,并在 PHP 7.2.0 中移除。 @@ -628,8 +452,6 @@ xmlns="http://docbook.org/ns/docbook"> 该函数自 PHP 8.1 - - 此函数没有参数。'> 以上示例会输出:'> @@ -637,9 +459,7 @@ xmlns="http://docbook.org/ns/docbook"> 该函数自 PHP 8.1 以上示例在 PHP 5 中的输出:'> 以上示例在 PHP 5.3 中的输出:'> - 以上示例在 PHP 5.4 中的输出:'> - 以上示例在 PHP 5.5 中的输出:'> 以上示例在 PHP 5.6 中的输出:'> @@ -650,8 +470,6 @@ xmlns="http://docbook.org/ns/docbook"> 该函数自 PHP 8.1 以上示例在 PHP 7.1 中的输出:'> -Output of the above example in PHP 7.2:'> - 以上示例在 PHP 7.3 中的输出:'> 以上示例在 PHP 8 中的输出:'> @@ -674,8 +492,6 @@ xmlns="http://docbook.org/ns/docbook"> 该函数自 PHP 8.1 上述示例在 PHP 8.4 中的输出类似于:'> -以上示例在 PHP 8.5 中的输出:'> - 上述示例在 PHP 8.5 中的输出类似于:'> 以上示例在 32 位机器上的输出:'> @@ -687,10 +503,6 @@ xmlns="http://docbook.org/ns/docbook"> 该函数自 PHP 8.1 以上示例会输出:'> -以上示例在 32 位机器上的输出:'> - -以上示例在 64 位机器上的输出:'> - 以上示例的输出类似于:'> @@ -813,11 +625,6 @@ $compareFunc = static function ($item1, $item2) { -此函数别名已废弃,仅为了向后兼容而保留。不建议使用此函数,因为将来会从 PHP 中移除。'> - - - - DLL 文件必须能在 Windows 系统的 PATH 指示的路径下找到。如何操作的信息,请参见题为“布尔类型章节以获取更多信息 '> - - key - - - See Public/Private Key parameters for a list of valid values. - - -'> - -此函数仅在 PHP -编译时指定了 时可用。'> - 此函数仅在 PHP 编译时加入 freetype 支持时有效()。'> @@ -1106,10 +901,6 @@ $font = 'SomeFont'; Used together with imagesetinterpolation, available as of PHP 5.5.0. '> - - 7.0.0T1Lib support was removed from PHP, thus this function was removed. -'> - The GD and GD2 image formats are proprietary image formats of libgd. They have to be regarded obsolete, and should only be used for development and testing @@ -1133,12 +924,6 @@ purposes.'> '> - - - -dbm_identifierDBM 链接标识符,由 dbmopen 返回。'> - - '> imapIMAP\Connection 实例。'> - -imapimap_open 返回的 IMAP 流。'> - 指定在邮箱层级的何处开始查找。 在组成 pattern 的字符中可使用两个特殊字符: @@ -1436,18 +1218,10 @@ will be used as the character encoding for this function by default.MCRYPT_ciphername 常量中的一个,或者是字符串值的算法名称。'> -在 CBC, CFB, OFB 模式中用于初始化过程,在 STREAM 模式中用于某些算法。如果未提供 IV 并且在某算法中需要,本函数发出一条警告并使用一个全部字节设为 "\0" 的 IV。'> - Used for the initialization in CBC, CFB, OFB modes, and in some algorithms in STREAM mode. If the provided IV size is not supported by the chaining mode or no IV was provided, but the chaining mode requires one, the function will emit a warning and return &false;.'> MCRYPT_MODE_modename 常量中的一个,或以下字符串中的一个:"ecb","cbc","cfb","ofb","nofb" 和 "stream"。'> - - - -connm_initengine 返回的 MCVE_CONN 资源。'> - - @@ -1552,8 +1326,6 @@ linkend="memcached.expiration" xmlns="http://docbook.org/ns/docbook">到期时 - - @@ -1637,12 +1409,6 @@ UTC 外),仅用于向后兼容,可能会引起某些错误行为。此外 Australia/Perth for the above examples. '> - -These timezone abbreviations have to be regarded as highly volatile, i.e. they -might be different for each timezonedb release, and should not be relied upon. -It is strongly recommended to avoid timezone abbreviations. -'> - 在每次调用日期/时间函数时,如果时区无效则会引发 E_NOTICE 错误。参见 date_default_timezone_set。'> @@ -1650,7 +1416,6 @@ It is strongly recommended to avoid timezone abbreviations. 5.1.0 现在发布 E_STRICTE_NOTICE 时区错误。'> - timestamp 可选的 timestamp 参数是一个 int 的 Unix 时间戳,如未指定或是 &null;,参数值默认为当前本地时间。也就是说,其值默认为 @@ -1672,9 +1437,7 @@ It is strongly recommended to avoid timezone abbreviations. object仅过程化风格:由 timezone_open 返回的 DateTimeZone 对象。'> -DateTime 对象,&return.falseforfailure;。'> DateTime 对象。'> -DateTimeImmutable 对象,&return.falseforfailure;。'> DateTimeImmutable 对象。'> @@ -1690,7 +1453,6 @@ It is strongly recommended to avoid timezone abbreviations. - 日期与时间格式。'> @@ -1758,12 +1520,9 @@ It is strongly recommended to avoid timezone abbreviations. - - 以下示例使用了 book.xml,其内容如下: - 指纹键名。'> - -发生错误时抛出 HaruException 异常。'> - ODBC 连接对象,详见 odbc_connect。'> @@ -2148,7 +1904,6 @@ It is strongly recommended to avoid timezone abbreviations. - 有效的 OCI8 报表标识符 由 oci_parse 创建,被 oci_execute @@ -2168,7 +1923,6 @@ It is strongly recommended to avoid timezone abbreviations. 此函数受 open_basedir 影响。'> - 因为是语言构造器而不是函数,不能被 可变函数 或者 命名参数 调用。 @@ -2187,8 +1941,6 @@ It is strongly recommended to avoid timezone abbreviations. 这是配置指令的简短说明。'> - - 这些函数的行为受 &php.ini; 中的设置影响。 @@ -2209,13 +1961,6 @@ It is strongly recommended to avoid timezone abbreviations. 下列常量作为 PHP 核心的一部分总是可用的。 '> - - -下列类由此扩展定义,且仅在此扩展编译入 PHP 或在运行时动态载入时可用。 -'> - - - 下列常量由此驱动定义,且仅在扩展编译入 PHP 或在运行时动态载入时可用。另外,使用此驱动时,仅会使用这些驱动特定的常量。使用其他驱动的驱动特定的常量可能会导致不可预见的情况。如果代码可运行于多个驱动,PDO::getAttribute @@ -2242,8 +1987,6 @@ It is strongly recommended to avoid timezone abbreviations. - - PECL 扩展的安装章节中找到。更多信息如新的发行版本、下载、源文件、 @@ -2266,8 +2009,6 @@ xmlns="http://docbook.org/ns/docbook">PECL 扩展的 DLL 文件) PECL 可以在 PECL 官方网站上下载。'> - - @@ -2346,13 +2087,11 @@ while PGSQL_BOTH will return both numerical and associative - PHP 的 Windows 版本已内建对此扩展的支持。不需要载入额外的扩展来使用这些函数。'> -安全模式'> SQL 安全模式'> @@ -2444,36 +2183,6 @@ PHP FastCGI 的主要实现,包含大部分对高负载网站有用的功能 建起了一个给大多数方法添加迭代属性的规则。不能通过使用 var_dump 或任何可检查对象的其它东西来查看。'> - -由 -SQLITE_ASSOCSQLITE_BOTH -返回的列名会依照 sqlite.assoc_case -配置选项的值决定大小写。'> - - -当 -decode_binary 参数设置为 &true;(默认值)时,PHP 会解码那些由 -sqlite_escape_string -编码后的二进制数据。通常应保留此值为其默认值,除非要与其他使用 SQLlite 的应用程序建立的数据交互。'> - - - -此函数不能用于未缓冲的结果句柄。'> - - -为兼容其他数据库扩展(比如 MySQL),支持两种可替代的语法。推荐第一种格式,函数的第一个参数是dbhandle'> - - - - -可选的 result_type -参数接受常量,且决定返回的数组如何被索引。使用 -SQLITE_ASSOC 会仅返回关联索引(已命名字段),而 -SQLITE_NUM 会仅返回数值索引。SQLITE_BOTH -会同时返回关联和数值索引。SQLITE_BOTH 是此函数的默认值。'> - - - 此函数返回的字段名大小写敏感'> @@ -2481,7 +2190,6 @@ PHP FastCGI 的主要实现,包含大部分对高负载网站有用的功能 此函数将 NULL 字段设置为 PHP &null; 值。'> - link_identifierMySQL @@ -2534,12 +2242,6 @@ link_identifier MySQL 连接. 如果该连 参见MySQL:选择 API 指南来获取更多信息。 用以替代本函数的有:'> -本函数自 PHP 5.5.0 -起已废弃,并且它和整个MySQL 扩展自 PHP 7.0.0 开始被移除。 -可以选择出于活跃开发中的MySQLi或PDO_MySQL扩展来作为替代。 -参见MySQL:选择 API 指南来获取更多信息。 -用以替代本函数的有:'> - 建立非持久性的 MySQL 连接,会在 PHP 执行完毕后自动销毁,所以手动关闭连接,并释放资源是可选的。但是还是推荐你在代码中显性的执行该操作,这对提高代码性能有帮助。参考文档 @@ -2563,21 +2265,6 @@ xattr 默认在 user 命名空间上操作,但可使用 Tidy 对象。'> -参数 -config 可传递数组或字符串。如传递字符串,则代表配置文件名,否则代表选项本身。关于每个选项的说明参见 -&url.tidy.conf; -encoding 参数设置输入/输出文档的编码。encoding - 的值可为: - ascii, latin0, latin1, - raw, utf8, iso2022, - mac, win1252, ibm858, - utf16, utf16le, - utf16be, big5 和 - shiftjis'> - - - - 不推荐在使用 Apache 2 的产品中使用线程化 MPM。应使用预分支 MPM,Apache 2.0 和 2.2 @@ -2690,9 +2377,6 @@ Windows 环境下的 Apache 配置文件中添加路径值时,所有的反斜 - - - @@ -2703,14 +2387,10 @@ Windows 环境下的 Apache 配置文件中添加路径值时,所有的反斜 - - - - @@ -2831,7 +2511,6 @@ Windows 环境下的 Apache 配置文件中添加路径值时,所有的反斜 StreamBucket 实例;之前返回 stdClass。'> - GmagickException。'> @@ -2881,7 +2560,6 @@ Windows 环境下的 Apache 配置文件中添加路径值时,所有的反斜 Win32 错误码。'> - WIN32_NO_ERROR&win32service.false.error;'> @@ -3026,7 +2704,6 @@ xmlns="http://docbook.org/ns/docbook">TRADER_MA_TYPE_* series of constants should be used.'> TRADER_MA_TYPE_* series of constants should be used.'> TRADER_MA_TYPE_* series of constants should be used.'> -TRADER_MA_TYPE_* series of constants should be used.'> TRADER_MA_TYPE_* series of constants should be used.'> TRADER_MA_TYPE_* series of constants should be used.'> TRADER_MA_TYPE_* series of constants should be used.'> @@ -3733,7 +3410,6 @@ local: { Throws MongoDB\Driver\Exception\LogicException if the write was not acknowledged.'> - @@ -4457,18 +4133,6 @@ local: { '> - - 5.6.0 - - The default value for the encoding parameter was - changed to be the value of the - default_charset configuration - option. - - -'> - 8.2.0 @@ -4636,32 +4300,6 @@ local: { '> - - - - - - filter - - - 要应用的过滤器。可以使用 FILTER_VALIDATE_* 常量作为验证过滤器,使用 - FILTER_SANITIZE_*FILTER_UNSAFE_RAW - 作为清理过滤器,也可以使用 FILTER_CALLBACK 作为自定义过滤器。 - - - 默认值为 FILTER_DEFAULT,是 FILTER_UNSAFE_RAW - 的别名。这将导致默认情况下不进行过滤。 - - - -'> - - - - - - From 836abc718e941ba9001274a65b8ea719eb854d45 Mon Sep 17 00:00:00 2001 From: Luffy Date: Fri, 31 Jul 2026 14:42:06 +0800 Subject: [PATCH 2/2] Update EN-Revision in language-snippets.ent for consistency --- language-snippets.ent | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/language-snippets.ent b/language-snippets.ent index 02c495b2e..149d52b04 100644 --- a/language-snippets.ent +++ b/language-snippets.ent @@ -1,6 +1,6 @@ - +