diff --git a/language-snippets.ent b/language-snippets.ent index cdfc2c5cf..5fd80af4b 100644 --- a/language-snippets.ent +++ b/language-snippets.ent @@ -485,6 +485,7 @@ xmlns="http://docbook.org/ns/docbook"> 该函数自 PHP 8.1 上述示例在 PHP 8.4 中的输出类似于:'> 上述示例在 PHP 8.5 中的输出类似于:'> +上述示例在 PHP 8.6 中的输出类似于:'> 以上示例在 32 位机器上的输出:'> diff --git a/language/predefined/attributes/allowdynamicproperties.xml b/language/predefined/attributes/allowdynamicproperties.xml index 8ebb86dec..923c2640e 100644 --- a/language/predefined/attributes/allowdynamicproperties.xml +++ b/language/predefined/attributes/allowdynamicproperties.xml @@ -1,5 +1,5 @@ - + AllowDynamicProperties 注解 @@ -20,6 +20,13 @@ 也同样允许动态属性。 + + + 此注解于 PHP 8.2.0 引入,是显式启用动态属性的方式。若类未使用此注解,且未实现 + __get() 或 __set(), + 则在该类上创建动态属性会被弃用。 + +
@@ -27,7 +34,7 @@ - #[\Attribute] + #[\Attribute(\Attribute::TARGET_CLASS)] final AllowDynamicProperties @@ -40,31 +47,43 @@
&reftitle.examples; - - 从 PHP 8.2.0 起弃用动态属性,因此在不使用此注解标记类的情况下使用动态属性将发出弃用通知。 - - AllowDynamicProperties 与不存在的属性 + AllowDynamicProperties 与动态属性 + + 若要启用动态属性,请添加 #[\AllowDynamicProperties]。 + myDynamicProp = 1234; +?> +]]> + + -$o1->nonExistingProp = true; -$o2->nonExistingProp = true; + + AllowDynamicProperties 与不存在的属性 + + 自 PHP 8.2.0 起,除非类使用此注解,否则必须显式声明属性。在此类上创建未声明的属性会发出弃用通知。 + + +myUnknownProperty = 1234; ?> ]]> &example.outputs.82; diff --git a/language/predefined/attributes/attribute.xml b/language/predefined/attributes/attribute.xml index c1616abe4..716d0c1b1 100644 --- a/language/predefined/attributes/attribute.xml +++ b/language/predefined/attributes/attribute.xml @@ -1,5 +1,6 @@ - + + Attribute 属性 Attribute @@ -18,7 +19,7 @@ - #[\Attribute] + #[\Attribute(\Attribute::TARGET_CLASS)] final Attribute @@ -177,6 +178,8 @@ 8.5.0 新增 Attribute::TARGET_CONSTANT。 + 现在将 #[\Attribute] 应用于抽象类、枚举、接口或 trait 会触发编译时错误;此前只有在调用 + ReflectionAttribute::newInstance 时才会在运行时报告。 diff --git a/language/predefined/attributes/deprecated.xml b/language/predefined/attributes/deprecated.xml index 788877dca..35cdfcbd8 100644 --- a/language/predefined/attributes/deprecated.xml +++ b/language/predefined/attributes/deprecated.xml @@ -1,5 +1,6 @@ - + + Deprecated 属性 Deprecated @@ -11,6 +12,9 @@ 此属性用于将功能标记为已弃用。使用已弃用的功能将导致发出 E_USER_DEPRECATED 错误。 + + 自 PHP 8.5.0 起,此属性也可以应用于 trait 和类外声明的编译时常量。 +
@@ -18,7 +22,7 @@ - #[\Attribute] + #[\Attribute(\Attribute::TARGET_METHOD | \Attribute::TARGET_FUNCTION | \Attribute::TARGET_CLASS_CONSTANT | \Attribute::TARGET_CONSTANT | \Attribute::TARGET_CLASS)] final Deprecated @@ -95,6 +99,29 @@ This is unsafe
+
+ &reftitle.changelog; + + + + + &Version; + &Description; + + + + + 8.5.0 + + Deprecated 现在也可以应用于 trait 和类外声明的编译时常量;后者通过新的 + Attribute::TARGET_CONSTANT 目标实现。 + + + + + +
+
&reftitle.seealso; diff --git a/language/predefined/attributes/override.xml b/language/predefined/attributes/override.xml index 16c8b14a5..61f8aba63 100644 --- a/language/predefined/attributes/override.xml +++ b/language/predefined/attributes/override.xml @@ -1,5 +1,5 @@ - + Override 注解 @@ -10,10 +10,10 @@
&reftitle.intro; - 此注解用于表明某个方法或属性意图重写父类中的方法或属性,或实现接口中定义的方法或属性。 + 此注解用于表明某个方法、属性或类常量(包括枚举 case)意图重写父类中的方法、属性或类常量,或实现接口中定义的方法、属性或类常量。 - 如果父类或实现的接口中不存在同名方法或属性,则会引发编译时错误。 + 如果父类或实现的接口中不存在同名的方法、属性或类常量,则会引发编译时错误。 此注解不能用于 __construct() @@ -26,7 +26,7 @@ - #[\Attribute] + #[\Attribute(\Attribute::TARGET_METHOD | \Attribute::TARGET_PROPERTY | \Attribute::TARGET_CLASS_CONSTANT)] final Override @@ -48,6 +48,12 @@ + + 8.6.0 + + Override 可以应用于类常量,包括枚举 case。 + + 8.5.0 @@ -108,6 +114,31 @@ final class Extended extends Base { + + + + 与类常量一起使用 + + +]]> + + &example.outputs.86.similar; + + diff --git a/language/predefined/attributes/returntypewillchange.xml b/language/predefined/attributes/returntypewillchange.xml index d56577dc2..f9c2d5837 100644 --- a/language/predefined/attributes/returntypewillchange.xml +++ b/language/predefined/attributes/returntypewillchange.xml @@ -1,5 +1,5 @@ - + ReturnTypeWillChange 注解 @@ -45,7 +45,7 @@ - #[\Attribute] + #[\Attribute(\Attribute::TARGET_METHOD)] final ReturnTypeWillChange diff --git a/language/predefined/attributes/sensitiveparameter.xml b/language/predefined/attributes/sensitiveparameter.xml index 83a5ae69f..5a8b09b26 100644 --- a/language/predefined/attributes/sensitiveparameter.xml +++ b/language/predefined/attributes/sensitiveparameter.xml @@ -1,5 +1,5 @@ - + SensitiveParameter 注解 @@ -20,7 +20,7 @@ - #[\Attribute] + #[\Attribute(\Attribute::TARGET_PARAMETER)] final SensitiveParameter diff --git a/reference/curl/functions/curl-close.xml b/reference/curl/functions/curl-close.xml index f442461c7..dc6a30703 100644 --- a/reference/curl/functions/curl-close.xml +++ b/reference/curl/functions/curl-close.xml @@ -1,6 +1,6 @@ - + @@ -15,7 +15,7 @@ &reftitle.description; - #[\Deprecated] + #[\Deprecated(since: '8.5', message: "as it has no effect since PHP 8.0")] voidcurl_close CurlHandlehandle diff --git a/reference/curl/functions/curl-share-close.xml b/reference/curl/functions/curl-share-close.xml index 496bec167..49ef813d1 100644 --- a/reference/curl/functions/curl-share-close.xml +++ b/reference/curl/functions/curl-share-close.xml @@ -1,7 +1,7 @@ - - + + curl_share_close @@ -15,7 +15,7 @@ &reftitle.description; - #[\Deprecated] + #[\Deprecated(since: '8.5', message: "as it has no effect since PHP 8.0")] voidcurl_share_close CurlShareHandleshare_handle @@ -51,6 +51,18 @@ + + 8.5.0 + + 此函数已弃用。 + + + + 8.0.0 + + 此函数现在不执行任何操作(NOP)。 + + &curl.changelog.share-handle-param; diff --git a/reference/datetime/functions/date-sunrise.xml b/reference/datetime/functions/date-sunrise.xml index 4935cb09d..4673b428b 100755 --- a/reference/datetime/functions/date-sunrise.xml +++ b/reference/datetime/functions/date-sunrise.xml @@ -1,6 +1,6 @@ - + @@ -19,7 +19,7 @@ &reftitle.description; - #[\Deprecated] + #[\Deprecated(since: '8.1', message: 'use date_sun_info() instead')] stringintfloatfalsedate_sunrise inttimestamp intreturnFormatSUNFUNCS_RET_STRING diff --git a/reference/datetime/functions/date-sunset.xml b/reference/datetime/functions/date-sunset.xml index 61b0f715b..25e7817f9 100755 --- a/reference/datetime/functions/date-sunset.xml +++ b/reference/datetime/functions/date-sunset.xml @@ -1,6 +1,6 @@ - + @@ -21,7 +21,7 @@ &reftitle.description; - #[\Deprecated] + #[\Deprecated(since: '8.1', message: 'use date_sun_info() instead')] stringintfloatfalsedate_sunset inttimestamp intreturnFormatSUNFUNCS_RET_STRING diff --git a/reference/datetime/functions/gmstrftime.xml b/reference/datetime/functions/gmstrftime.xml index 998f3db5f..86fd9c227 100755 --- a/reference/datetime/functions/gmstrftime.xml +++ b/reference/datetime/functions/gmstrftime.xml @@ -1,6 +1,6 @@ - + @@ -19,7 +19,7 @@ &reftitle.description; - #[\Deprecated] + #[\Deprecated(since: '8.1', message: 'use IntlDateFormatter::format() instead')] stringfalsegmstrftime stringformat intnulltimestamp&null; @@ -89,19 +89,30 @@ &reftitle.examples; - - - <function>gmstrftime</function> 示例 - + + <function>gmstrftime</function> 示例 + - - - + + &example.outputs; + + + + diff --git a/reference/datetime/functions/strftime.xml b/reference/datetime/functions/strftime.xml index 1cc412303..c07cfbe93 100755 --- a/reference/datetime/functions/strftime.xml +++ b/reference/datetime/functions/strftime.xml @@ -1,6 +1,6 @@ - + @@ -19,7 +19,7 @@ &reftitle.description; - #[\Deprecated] + #[\Deprecated(since: '8.1', message: 'use IntlDateFormatter::format() instead')] stringfalsestrftime stringformat intnulltimestamp&null; diff --git a/reference/datetime/functions/strptime.xml b/reference/datetime/functions/strptime.xml index 5bf5419b6..511ba0262 100755 --- a/reference/datetime/functions/strptime.xml +++ b/reference/datetime/functions/strptime.xml @@ -1,6 +1,6 @@ - + @@ -17,7 +17,7 @@ &reftitle.description; - #[\Deprecated] + #[\Deprecated(since: '8.2', message: 'use date_parse_from_format() (for locale-independent parsing), or IntlDateFormatter::parse() (for locale-dependent parsing) instead')] arrayfalsestrptime stringtimestamp stringformat diff --git a/reference/fileinfo/functions/finfo-close.xml b/reference/fileinfo/functions/finfo-close.xml index 65eb103b7..c2f97d3be 100644 --- a/reference/fileinfo/functions/finfo-close.xml +++ b/reference/fileinfo/functions/finfo-close.xml @@ -1,6 +1,6 @@ - + @@ -14,7 +14,7 @@ &reftitle.description; - #[\Deprecated] + #[\Deprecated(since: '8.5', message: 'as finfo objects are freed automatically')] truefinfo_close finfofinfo diff --git a/reference/image/functions/imagedestroy.xml b/reference/image/functions/imagedestroy.xml index 1eb2ae752..74efbd9bb 100644 --- a/reference/image/functions/imagedestroy.xml +++ b/reference/image/functions/imagedestroy.xml @@ -1,6 +1,6 @@ - + @@ -13,7 +13,7 @@ &reftitle.description; - #[\Deprecated] + #[\Deprecated(since: '8.5', message: "as it has no effect since PHP 8.0")] trueimagedestroy GdImageimage diff --git a/reference/mysqli/mysqli/get-client-info.xml b/reference/mysqli/mysqli/get-client-info.xml index 2423aa8c8..21ac5db39 100644 --- a/reference/mysqli/mysqli/get-client-info.xml +++ b/reference/mysqli/mysqli/get-client-info.xml @@ -1,6 +1,6 @@ - + @@ -15,7 +15,7 @@ &style.oop; stringmysqli->client_info - #[\Deprecated] + #[\Deprecated(since: '8.1', message: 'use mysqli_get_client_info() instead')] public stringmysqli::get_client_info diff --git a/reference/mysqli/mysqli/init.xml b/reference/mysqli/mysqli/init.xml index 729bcd498..ac580d7f5 100644 --- a/reference/mysqli/mysqli/init.xml +++ b/reference/mysqli/mysqli/init.xml @@ -1,6 +1,6 @@ - + @@ -13,7 +13,7 @@ &reftitle.description; &style.oop; - #[\Deprecated] + #[\Deprecated(since: '8.1', message: 'replace calls to parent::init() with parent::__construct()')] public boolnullmysqli::init @@ -26,10 +26,10 @@ 分配或者初始化适合 mysqli_options 和 mysqli_real_connect 的 MYSQL 对象。 - - 在调用 mysqli_real_connect 之前,对其它 mysqli 函数(mysqli_options - 和 mysqli_ssl_set 除外)的后续调用都会失败。 - + + 对其它 mysqli 函数(mysqli_options 和 mysqli_ssl_set 除外)的后续调用都会失败,直到调用 + mysqli_real_connect。 + diff --git a/reference/mysqli/mysqli/kill.xml b/reference/mysqli/mysqli/kill.xml index 0088fdb0a..058ed1ae2 100644 --- a/reference/mysqli/mysqli/kill.xml +++ b/reference/mysqli/mysqli/kill.xml @@ -1,6 +1,6 @@ - + @@ -17,13 +17,13 @@ &reftitle.description; &style.oop; - #[\Deprecated] + #[\Deprecated(since: '8.4', message: 'use KILL CONNECTION/QUERY SQL statement instead')] public boolmysqli::kill intprocess_id &style.procedural; - #[\Deprecated] + #[\Deprecated(since: '8.4', message: 'use KILL CONNECTION/QUERY SQL statement instead')] boolmysqli_kill mysqlimysql intprocess_id diff --git a/reference/mysqli/mysqli/ping.xml b/reference/mysqli/mysqli/ping.xml index 3f3985611..fcef20b00 100644 --- a/reference/mysqli/mysqli/ping.xml +++ b/reference/mysqli/mysqli/ping.xml @@ -1,6 +1,6 @@ - + @@ -17,13 +17,13 @@ &reftitle.description; &style.oop; - #[\Deprecated] + #[\Deprecated(since: '8.4', message: 'because the reconnect feature has been removed in PHP 8.2 and this method is now redundant')] public boolmysqli::ping &style.procedural; - #[\Deprecated] + #[\Deprecated(since: '8.4', message: 'because the reconnect feature has been removed in PHP 8.2 and this function is now redundant')] boolmysqli_ping mysqlimysql @@ -77,7 +77,7 @@ 8.4.0 mysqli::ping 和 mysqli_ping - 都已弃用。自 PHP 8.2.0 起,reconnect 功能已不可用,因此该函数已过时。 + 都已弃用。自 PHP 8.2.0 起,reconnect 功能已被移除,因此该函数现已多余。 diff --git a/reference/mysqli/mysqli/refresh.xml b/reference/mysqli/mysqli/refresh.xml index 546468479..a22d86e60 100644 --- a/reference/mysqli/mysqli/refresh.xml +++ b/reference/mysqli/mysqli/refresh.xml @@ -1,6 +1,6 @@ - + @@ -17,13 +17,13 @@ &reftitle.description; &style.oop; - #[\Deprecated] + #[\Deprecated(since: '8.4', message: 'use FLUSH SQL statement instead')] public boolmysqli::refresh intflags &style.procedural; - #[\Deprecated] + #[\Deprecated(since: '8.4', message: 'use FLUSH SQL statement instead')] boolmysqli_refresh mysqlimysql intflags diff --git a/reference/openssl/functions/openssl-free-key.xml b/reference/openssl/functions/openssl-free-key.xml index 06eb3c14e..b9844e881 100644 --- a/reference/openssl/functions/openssl-free-key.xml +++ b/reference/openssl/functions/openssl-free-key.xml @@ -1,6 +1,6 @@ - + @@ -15,7 +15,7 @@ &reftitle.description; - #[\Deprecated] + #[\Deprecated(since: '8.0', message: 'as OpenSSLAsymmetricKey objects are freed automatically')] voidopenssl_free_key OpenSSLAsymmetricKeykey diff --git a/reference/openssl/functions/openssl-pkey-free.xml b/reference/openssl/functions/openssl-pkey-free.xml index e490c2948..9e870564c 100644 --- a/reference/openssl/functions/openssl-pkey-free.xml +++ b/reference/openssl/functions/openssl-pkey-free.xml @@ -1,6 +1,6 @@ - + @@ -15,7 +15,7 @@ &reftitle.description; - #[\Deprecated] + #[\Deprecated(since: '8.0', message: 'as OpenSSLAsymmetricKey objects are freed automatically')] voidopenssl_pkey_free OpenSSLAsymmetricKeykey diff --git a/reference/openssl/functions/openssl-x509-free.xml b/reference/openssl/functions/openssl-x509-free.xml index d9927dec7..da6fc1fdd 100644 --- a/reference/openssl/functions/openssl-x509-free.xml +++ b/reference/openssl/functions/openssl-x509-free.xml @@ -1,6 +1,6 @@ - + @@ -15,7 +15,7 @@ &reftitle.description; - #[\Deprecated] + #[\Deprecated(since: '8.0', message: 'as OpenSSLCertificate objects are freed automatically')] voidopenssl_x509_free OpenSSLCertificatecertificate diff --git a/reference/random/functions/lcg-value.xml b/reference/random/functions/lcg-value.xml index 5693f8261..8832339fa 100644 --- a/reference/random/functions/lcg-value.xml +++ b/reference/random/functions/lcg-value.xml @@ -1,6 +1,6 @@ - + @@ -15,7 +15,7 @@ &reftitle.description; - #[\Deprecated] + #[\Deprecated(since: '8.4', message: "use \\Random\\Randomizer::getFloat() instead")] floatlcg_value diff --git a/reference/reflection/reflectionmethod/setaccessible.xml b/reference/reflection/reflectionmethod/setaccessible.xml index 84f96d8a6..13bba2b91 100644 --- a/reference/reflection/reflectionmethod/setaccessible.xml +++ b/reference/reflection/reflectionmethod/setaccessible.xml @@ -1,7 +1,7 @@ - - + + ReflectionMethod::setAccessible @@ -15,7 +15,7 @@ &reftitle.description; - #[\Deprecated] + #[\Deprecated(since: '8.5', message: "as it has no effect since PHP 8.1")] public voidReflectionMethod::setAccessible boolaccessible @@ -52,6 +52,34 @@ + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + + 8.5.0 + + 此方法已弃用,因为它不再产生任何效果。 + + + + 8.1.0 + + 调用此方法不再产生效果;所有方法默认都可以调用。 + + + + + + + &reftitle.examples; diff --git a/reference/reflection/reflectionparameter/getclass.xml b/reference/reflection/reflectionparameter/getclass.xml index 682613e7e..864a2264f 100644 --- a/reference/reflection/reflectionparameter/getclass.xml +++ b/reference/reflection/reflectionparameter/getclass.xml @@ -1,6 +1,6 @@ - + @@ -15,7 +15,7 @@ &reftitle.description; - #[\Deprecated] + #[\Deprecated(since: '8.0', message: "use ReflectionParameter::getType() instead")] public ReflectionClassnullReflectionParameter::getClass diff --git a/reference/strings/functions/utf8-decode.xml b/reference/strings/functions/utf8-decode.xml index 4e45b2b0f..abdce64ff 100644 --- a/reference/strings/functions/utf8-decode.xml +++ b/reference/strings/functions/utf8-decode.xml @@ -1,6 +1,6 @@ - + @@ -17,7 +17,7 @@ &reftitle.description; - #[\Deprecated] + #[\Deprecated(since: '8.2', message: 'visit the php.net documentation for various alternatives')] stringutf8_decode stringstring diff --git a/reference/strings/functions/utf8-encode.xml b/reference/strings/functions/utf8-encode.xml index 5b58d4107..f6348d0fa 100644 --- a/reference/strings/functions/utf8-encode.xml +++ b/reference/strings/functions/utf8-encode.xml @@ -1,6 +1,6 @@ - + @@ -15,7 +15,7 @@ &reftitle.description; - #[\Deprecated] + #[\Deprecated(since: '8.2', message: 'visit the php.net documentation for various alternatives')] stringutf8_encode stringstring diff --git a/reference/xml/functions/xml-parser-free.xml b/reference/xml/functions/xml-parser-free.xml index a2d2088f3..6e43a5cfd 100644 --- a/reference/xml/functions/xml-parser-free.xml +++ b/reference/xml/functions/xml-parser-free.xml @@ -1,6 +1,6 @@ - + @@ -15,7 +15,7 @@ &reftitle.description; - #[\Deprecated] + #[\Deprecated(since: '8.5', message: "as it has no effect since PHP 8.0")] boolxml_parser_free XMLParserparser diff --git a/reference/xml/functions/xml-set-object.xml b/reference/xml/functions/xml-set-object.xml index 12fc94cf7..90986b75f 100644 --- a/reference/xml/functions/xml-set-object.xml +++ b/reference/xml/functions/xml-set-object.xml @@ -1,6 +1,6 @@ - + @@ -15,7 +15,7 @@ &reftitle.description; - #[\Deprecated] + #[\Deprecated(since: '8.4', message: 'provide a proper method callable to xml_set_*_handler() functions')] truexml_set_object XMLParserparser objectobject diff --git a/reference/zip/functions/zip-close.xml b/reference/zip/functions/zip-close.xml index 17d4fd0e7..15d406c2f 100644 --- a/reference/zip/functions/zip-close.xml +++ b/reference/zip/functions/zip-close.xml @@ -1,6 +1,6 @@ - + @@ -15,7 +15,7 @@ &reftitle.description; - #[\Deprecated] + #[\Deprecated(since: '8.0', message: 'use ZipArchive::close() instead')] voidzip_close resourcezip diff --git a/reference/zip/functions/zip-entry-close.xml b/reference/zip/functions/zip-entry-close.xml index 5c73a3190..398f6e264 100644 --- a/reference/zip/functions/zip-entry-close.xml +++ b/reference/zip/functions/zip-entry-close.xml @@ -1,6 +1,6 @@ - + @@ -15,7 +15,7 @@ &reftitle.description; - #[\Deprecated] + #[\Deprecated(since: '8.0')] boolzip_entry_close resourcezip_entry diff --git a/reference/zip/functions/zip-entry-compressedsize.xml b/reference/zip/functions/zip-entry-compressedsize.xml index c1b228342..2f0ff95ee 100644 --- a/reference/zip/functions/zip-entry-compressedsize.xml +++ b/reference/zip/functions/zip-entry-compressedsize.xml @@ -1,6 +1,6 @@ - + @@ -15,7 +15,7 @@ &reftitle.description; - #[\Deprecated] + #[\Deprecated(since: '8.0', message: 'use ZipArchive::statIndex() instead')] intfalsezip_entry_compressedsize resourcezip_entry diff --git a/reference/zip/functions/zip-entry-compressionmethod.xml b/reference/zip/functions/zip-entry-compressionmethod.xml index 4732668cd..5329e3f5a 100644 --- a/reference/zip/functions/zip-entry-compressionmethod.xml +++ b/reference/zip/functions/zip-entry-compressionmethod.xml @@ -1,6 +1,6 @@ - + @@ -15,7 +15,7 @@ &reftitle.description; - #[\Deprecated] + #[\Deprecated(since: '8.0', message: 'use ZipArchive::statIndex() instead')] stringfalsezip_entry_compressionmethod resourcezip_entry diff --git a/reference/zip/functions/zip-entry-filesize.xml b/reference/zip/functions/zip-entry-filesize.xml index 59ae0239c..c748cb3df 100644 --- a/reference/zip/functions/zip-entry-filesize.xml +++ b/reference/zip/functions/zip-entry-filesize.xml @@ -1,6 +1,6 @@ - + @@ -15,7 +15,7 @@ &reftitle.description; - #[\Deprecated] + #[\Deprecated(since: '8.0', message: 'use ZipArchive::statIndex() instead')] intfalsezip_entry_filesize resourcezip_entry diff --git a/reference/zip/functions/zip-entry-name.xml b/reference/zip/functions/zip-entry-name.xml index f793d3efb..db507719b 100644 --- a/reference/zip/functions/zip-entry-name.xml +++ b/reference/zip/functions/zip-entry-name.xml @@ -1,6 +1,6 @@ - + @@ -15,7 +15,7 @@ &reftitle.description; - #[\Deprecated] + #[\Deprecated(since: '8.0', message: 'use ZipArchive::statIndex() instead')] stringfalsezip_entry_name resourcezip_entry diff --git a/reference/zip/functions/zip-entry-open.xml b/reference/zip/functions/zip-entry-open.xml index 3af688875..157f78e80 100644 --- a/reference/zip/functions/zip-entry-open.xml +++ b/reference/zip/functions/zip-entry-open.xml @@ -1,6 +1,6 @@ - + @@ -15,7 +15,7 @@ &reftitle.description; - #[\Deprecated] + #[\Deprecated(since: '8.0')] boolzip_entry_open resourcezip_dp resourcezip_entry diff --git a/reference/zip/functions/zip-entry-read.xml b/reference/zip/functions/zip-entry-read.xml index 76713d7d7..1e3cbac1d 100644 --- a/reference/zip/functions/zip-entry-read.xml +++ b/reference/zip/functions/zip-entry-read.xml @@ -1,6 +1,6 @@ - + @@ -15,7 +15,7 @@ &reftitle.description; - #[\Deprecated] + #[\Deprecated(since: '8.0', message: 'use ZipArchive::getFromIndex() instead')] stringfalsezip_entry_read resourcezip_entry intlen1024 @@ -53,6 +53,14 @@ + + &reftitle.returnvalues; + + 成功的时候返回读取到的数据;到达文件末尾的时候返回一个空的字符串; + 读取出错的时候则会返回&false; + + + &reftitle.changelog; @@ -76,14 +84,6 @@ - - - &reftitle.returnvalues; - - 成功的时候返回读取到的数据;到达文件末尾的时候返回一个空的字符串; - 读取出错的时候则会返回&false; - - &reftitle.seealso; diff --git a/reference/zip/functions/zip-open.xml b/reference/zip/functions/zip-open.xml index 7846d7c0c..cd4985e67 100644 --- a/reference/zip/functions/zip-open.xml +++ b/reference/zip/functions/zip-open.xml @@ -1,6 +1,6 @@ - + @@ -15,7 +15,7 @@ &reftitle.description; - #[\Deprecated] + #[\Deprecated(since: '8.0', message: 'use ZipArchive::open() instead')] resourceintfalsezip_open stringfilename diff --git a/reference/zip/functions/zip-read.xml b/reference/zip/functions/zip-read.xml index e7e5a966a..42a018d81 100644 --- a/reference/zip/functions/zip-read.xml +++ b/reference/zip/functions/zip-read.xml @@ -1,6 +1,6 @@ - + @@ -15,7 +15,7 @@ &reftitle.description; - #[\Deprecated] + #[\Deprecated(since: '8.0', message: 'use ZipArchive::statIndex() instead')] resourcefalsezip_read resourcezip