From 07661f9a3956bc95a28c1296726fb001bed606e1 Mon Sep 17 00:00:00 2001 From: sy-records <52o@qq52o.cn> Date: Fri, 11 Oct 2024 09:54:48 +0800 Subject: [PATCH] Sync outdated files --- features/gc.xml | 6 ++-- install/cloud/azure.xml | 10 +++---- install/windows/building.xml | 12 +++----- language-snippets.ent | 6 ++-- language/control-structures/declare.xml | 30 +++++++++---------- language/control-structures/include-once.xml | 12 ++++---- language/enumerations.xml | 2 +- language/functions.xml | 4 +-- language/operators/comparison.xml | 2 +- language/wrappers/php.xml | 3 +- reference/array/functions/range.xml | 6 ++-- reference/datetime/datetimeinterface/diff.xml | 6 +++- reference/exif/setup.xml | 8 +---- reference/ftp/functions/ftp-nb-fget.xml | 4 +-- 14 files changed, 51 insertions(+), 60 deletions(-) diff --git a/features/gc.xml b/features/gc.xml index d14502a64e..86fb26b731 100644 --- a/features/gc.xml +++ b/features/gc.xml @@ -1,6 +1,6 @@ - + 垃圾回收 @@ -220,7 +220,7 @@ a: (refcount=1, is_ref=0)=array ( - 将数组本身作为其自身的一个元素添加进去 + 将数组添加为自身的一个元素 虽然在任何作用域中都没有指向这个结构的符号,却无法清理它,因为数组元素“1”仍然指向同一个数组。由于没有外部符号指向它,用户无法清理该结构;因此会出现内存泄漏。幸运的是,PHP 会在请求结束时清理这个数据结构,但在此之前,它会占用宝贵的内存空间。如果你正在实现解析算法或其他需要子级元素指向"父级"元素的情况,会经常发生。当然,object - 也可能出现相同的情况,因为 object 始终隐式引用。 + 也可能出现相同的情况,因为 object 始终隐式“引用”。 如果这种情况只发生一两次,可能不是问题,但如果出现数千次,甚至数百万次的内存损失,显然就成了问题。这在长时间运行的脚本中尤为棘手,比如守护进程,其中请求基本上永远不会结束,或者在大量的单元测试集中。后者在运行 diff --git a/install/cloud/azure.xml b/install/cloud/azure.xml index 1ea066dea0..77ee52fc32 100644 --- a/install/cloud/azure.xml +++ b/install/cloud/azure.xml @@ -1,8 +1,8 @@ - - - + + + Azure 应用服务 PHP 经常用于 Azure 应用服务(又称 Microsoft Azure、Windows Azure、Azure Web 应用)。 @@ -15,8 +15,6 @@ 因此,PHP 和扩展将跟在其他 Windows 服务器一样在 Azure 应用服务上运行。 - 大部分的知识库也适用,因此也可以参阅 Windows 疑难解答页面。 - 然而,Azure 应用管理的管理界面是不同的: @@ -54,7 +52,7 @@ - + - + 从源程序编译 - - 本章讲述了在 Windows 下如何使用 Microsoft 的工具编译 PHP。要在 - CygWin 中编译 PHP,请参考 一章。 - - - 具体内容见:&url.wiki.windows.build.howto;。 - + + 参阅 逐步构建说明 以使用 Visual Studio 进行编译。 + - + @@ -3521,7 +3521,7 @@ local: { sparsity int - Required. Positive 64-bit integer. + Optional. Positive 64-bit integer. precision @@ -3535,7 +3535,7 @@ local: { trimFactor int - Required. Positive 32-bit integer. + Optional. Positive 32-bit integer. diff --git a/language/control-structures/declare.xml b/language/control-structures/declare.xml index 0e0b862178..220b4f3304 100644 --- a/language/control-structures/declare.xml +++ b/language/control-structures/declare.xml @@ -1,6 +1,6 @@ - + declare @@ -19,20 +19,20 @@ declare (directive) directive 部分允许设定 declare - 代码段的行为。目前只认识三个指令:ticks(更多信息见下面 - ticks 指令)、 - encoding(更多信息见下面 encoding 指令)、 - strict_types 指令 (更多信息见类型声明页面 - 严格类型 - 章节)。 + 代码段的行为。 + 目前只认识三个指令: + + ticks + encoding + strict_types + - 因为本指令是在文件编译时处理的,所以指令只接受字面量的值。 - 无法使用变量和常量。下面为你演示: - - - + + ]]> - - + + declare 代码段中的 statement diff --git a/language/control-structures/include-once.xml b/language/control-structures/include-once.xml index fc1baef06d..11c975a8e2 100644 --- a/language/control-structures/include-once.xml +++ b/language/control-structures/include-once.xml @@ -1,16 +1,14 @@ - - - - + + include_once - include_once 语句在脚本执行期间包含并运行指定文件。此行为和 - include - 语句类似,唯一区别是如果该文件中已经被包含过,则不会再次包含,且 include_once 会返回 &true;。 + include_once 表达在脚本执行期间包含并运行指定文件。此行为和 + include 表达类似, + 唯一区别是如果该文件中已经被包含过,则不会再次包含,且 include_once 会返回 &true;。 顾名思义,require_once,文件仅仅包含(require)一次。 diff --git a/language/enumerations.xml b/language/enumerations.xml index c98b42b885..497aec490f 100644 --- a/language/enumerations.xml +++ b/language/enumerations.xml @@ -1,5 +1,5 @@ - + 枚举 diff --git a/language/functions.xml b/language/functions.xml index f279cd9218..530f34923d 100644 --- a/language/functions.xml +++ b/language/functions.xml @@ -1,6 +1,6 @@ - + 函数 @@ -1397,7 +1397,7 @@ var_export($fn(5)(10)); $x; -static fn(): int => $x; +static fn($x): int => $x; fn($x = 42) => $x; fn(&$x) => $x; fn&($x) => $x; diff --git a/language/operators/comparison.xml b/language/operators/comparison.xml index 3047ffa3f3..1d8df0696e 100644 --- a/language/operators/comparison.xml +++ b/language/operators/comparison.xml @@ -1,5 +1,5 @@ - + 比较运算符 diff --git a/language/wrappers/php.xml b/language/wrappers/php.xml index cd47ea0c12..f8fd077421 100644 --- a/language/wrappers/php.xml +++ b/language/wrappers/php.xml @@ -1,6 +1,6 @@ - + @@ -332,6 +332,7 @@ file_put_contents("php://filter/write=string.rot13/resource=example.txt","Hello diff --git a/reference/array/functions/range.xml b/reference/array/functions/range.xml index 4af9640614..823b819c3e 100755 --- a/reference/array/functions/range.xml +++ b/reference/array/functions/range.xml @@ -1,7 +1,7 @@ - - + + range @@ -115,7 +115,7 @@ - 如果 startend 不是start 或 end 不是一个数字字符串,并且多于一个字节,将发出 E_WARNING diff --git a/reference/datetime/datetimeinterface/diff.xml b/reference/datetime/datetimeinterface/diff.xml index 8dc94b00ff..06e7f4ab63 100644 --- a/reference/datetime/datetimeinterface/diff.xml +++ b/reference/datetime/datetimeinterface/diff.xml @@ -1,6 +1,6 @@ - + @@ -68,6 +68,10 @@ DateInterval 对象表示两个日期之间的差值。 + + absolute 参数只影响 DateInterval 对象的 + invert 属性。 + 返回更具体的表示应用于原始对象($this$originObject)到达 $targetObject diff --git a/reference/exif/setup.xml b/reference/exif/setup.xml index 6047d4604d..1d3c0bbe6b 100644 --- a/reference/exif/setup.xml +++ b/reference/exif/setup.xml @@ -1,6 +1,6 @@ - + @@ -16,12 +16,6 @@ mbstring 扩展。 exif 不需要其他额外的 PHP 库就可以直接使用。 - - Windows 平台:必须启用 - mbstring 扩展。 - 并且,在 php.ini 文件中, - mbstring 必须先于 EXIF 加载。 - diff --git a/reference/ftp/functions/ftp-nb-fget.xml b/reference/ftp/functions/ftp-nb-fget.xml index c5ab30b657..b66364fa60 100644 --- a/reference/ftp/functions/ftp-nb-fget.xml +++ b/reference/ftp/functions/ftp-nb-fget.xml @@ -1,7 +1,7 @@ - - + + ftp_nb_fget