Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions reference/fileinfo/functions/finfo-close.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 5b7646656eb183ea568b8261d6d87a10a1b961c7 Maintainer: yuanyuqiang Status: ready -->
<!-- EN-Revision: fcd9214294f88b05862a538c6dd94c7872420139 Maintainer: yuanyuqiang Status: ready -->
<!-- CREDITS: mowangjuanzi, Luffy -->
<!-- Generated by xml_proto.php v2.3. Found in /scripts directory of phpdoc. -->
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.finfo-close">
Expand All @@ -20,7 +20,9 @@
</methodsynopsis>

<simpara>
关闭 <function>finfo_open</function> 函数所返回的 fileinfo 实例。
此函数用于关闭由 <function>finfo_open</function> 打开的实例,直到 PHP 7.4,
但自 PHP 8.0 以来,由于 <classname>finfo</classname> 资源到对象的转换,
此函数已成为无操作,并且在 PHP 8.5 中已被弃用。
</simpara>

</refsect1>
Expand Down
12 changes: 11 additions & 1 deletion reference/ftp/functions/ftp-set-option.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 5b7646656eb183ea568b8261d6d87a10a1b961c7 Maintainer: Avenger Status: ready -->
<!-- EN-Revision: fcd9214294f88b05862a538c6dd94c7872420139 Maintainer: Avenger Status: ready -->
<!-- CREDITS: mowangjuanzi, Luffy -->
<refentry xml:id="function.ftp-set-option" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
Expand Down Expand Up @@ -77,13 +77,23 @@
</variablelist>
</para>
</refsect1>

<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
&return.true.always;
</para>
</refsect1>

<refsect1 role="errors">
&reftitle.errors;
<para>
如果 <parameter>option</parameter> 不受支持,则会抛出一个 <exceptionname>ValueError</exceptionname>。
如果传递的 <parameter>value</parameter> 与给定 <parameter>option</parameter> 的预期类型不匹配,
则会抛出一个 <exceptionname>TypeError</exceptionname>。
</para>
</refsect1>

<refsect1 role="changelog">
&reftitle.changelog;
<informaltable>
Expand Down
14 changes: 13 additions & 1 deletion reference/image/functions/getimagesize.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: f8d1e172bd6d11986f0dfeb11756b90c039a39bc Maintainer: HonestQiao Status: ready -->
<!-- EN-Revision: 6bb90d24b240a0b81e4b203cd8b7ed56bd54033a Maintainer: HonestQiao Status: ready -->
<!-- CREDITS: mowangjuanzi, Luffy -->
<refentry xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://docbook.org/ns/docbook" xml:id="function.getimagesize">
<refnamediv>
Expand Down Expand Up @@ -149,6 +149,10 @@ if ($size && $fp) {
如果无法访问 <parameter>filename</parameter> 图像,<function>getimagesize</function> 将生成 <constant>E_WARNING</constant>
级别的错误。读取错误时,<function>getimagesize</function> 将生成 <constant>E_NOTICE</constant> 级别的错误。
</para>
<para>
从 PHP 8.0.0 开始,如果 <parameter>filename</parameter> 不存在或无法访问,
将抛出一个 <exceptionname>ValueError</exceptionname>。
</para>
</refsect1>

<refsect1 role="changelog">
Expand All @@ -169,6 +173,14 @@ if ($size && $fp) {
现在将正确返回 AVIF 图像的实际尺寸、bits 和 channels;以前,尺寸报告为 <literal>0x0</literal>,并且不会报告 bits 和 channels。
</entry>
</row>
<row>
<entry>8.0.0</entry>
<entry>
如果 <parameter>filename</parameter> 不存在或无法访问,将抛出一个
<exceptionname>ValueError</exceptionname>;之前会生成一个 <constant>E_WARNING</constant>
级别的错误,并且函数返回 &false;。
</entry>
</row>
<row>
<entry>7.1.0</entry>
<entry>
Expand Down
8 changes: 4 additions & 4 deletions reference/image/functions/imagealphablending.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 9960a09a5705102bf4dd0ce63e03d9ec716d0015 Maintainer: HonestQiao Status: ready -->
<!-- CREDITS: mowangjuanzi -->
<!-- EN-Revision: fcd9214294f88b05862a538c6dd94c7872420139 Maintainer: HonestQiao Status: ready -->
<!-- CREDITS: mowangjuanzi, Luffy -->
<refentry xml:id="function.imagealphablending" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>imagealphablending</refname>
Expand All @@ -10,7 +10,7 @@
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>bool</type><methodname>imagealphablending</methodname>
<type>true</type><methodname>imagealphablending</methodname>
<methodparam><type>GdImage</type><parameter>image</parameter></methodparam>
<methodparam><type>bool</type><parameter>enable</parameter></methodparam>
</methodsynopsis>
Expand Down Expand Up @@ -43,7 +43,7 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
&return.success;
&return.true.always;
</para>
</refsect1>

Expand Down
8 changes: 4 additions & 4 deletions reference/image/functions/imageantialias.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 9960a09a5705102bf4dd0ce63e03d9ec716d0015 Maintainer: HonestQiao Status: ready -->
<!-- CREDITS: mowangjuanzi -->
<!-- EN-Revision: fcd9214294f88b05862a538c6dd94c7872420139 Maintainer: HonestQiao Status: ready -->
<!-- CREDITS: mowangjuanzi, Luffy -->
<refentry xml:id="function.imageantialias" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>imageantialias</refname>
Expand All @@ -10,7 +10,7 @@
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>bool</type><methodname>imageantialias</methodname>
<type>true</type><methodname>imageantialias</methodname>
<methodparam><type>GdImage</type><parameter>image</parameter></methodparam>
<methodparam><type>bool</type><parameter>enable</parameter></methodparam>
</methodsynopsis>
Expand Down Expand Up @@ -45,7 +45,7 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
&return.success;
&return.true.always;
</para>
</refsect1>

Expand Down
8 changes: 4 additions & 4 deletions reference/image/functions/imagearc.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 9960a09a5705102bf4dd0ce63e03d9ec716d0015 Maintainer: dallas Status: ready -->
<!-- CREDITS: mowangjuanzi -->
<!-- EN-Revision: fcd9214294f88b05862a538c6dd94c7872420139 Maintainer: dallas Status: ready -->
<!-- CREDITS: mowangjuanzi, Luffy -->
<refentry xml:id="function.imagearc" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>imagearc</refname>
Expand All @@ -10,7 +10,7 @@
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>bool</type><methodname>imagearc</methodname>
<type>true</type><methodname>imagearc</methodname>
<methodparam><type>GdImage</type><parameter>image</parameter></methodparam>
<methodparam><type>int</type><parameter>center_x</parameter></methodparam>
<methodparam><type>int</type><parameter>center_y</parameter></methodparam>
Expand Down Expand Up @@ -91,7 +91,7 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
&return.success;
&return.true.always;
</para>
</refsect1>

Expand Down
8 changes: 4 additions & 4 deletions reference/image/functions/imagechar.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: a7e5e563d2d2269a6d7ccff506715a3e1a6f3902 Maintainer: dallas Status: ready -->
<!-- CREDITS: mowangjuanzi -->
<!-- EN-Revision: fcd9214294f88b05862a538c6dd94c7872420139 Maintainer: dallas Status: ready -->
<!-- CREDITS: mowangjuanzi, Luffy -->
<refentry xml:id="function.imagechar" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>imagechar</refname>
Expand All @@ -10,7 +10,7 @@
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>bool</type><methodname>imagechar</methodname>
<type>true</type><methodname>imagechar</methodname>
<methodparam><type>GdImage</type><parameter>image</parameter></methodparam>
<methodparam><type class="union"><type>GdFont</type><type>int</type></type><parameter>font</parameter></methodparam>
<methodparam><type>int</type><parameter>x</parameter></methodparam>
Expand Down Expand Up @@ -68,7 +68,7 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
&return.success;
&return.true.always;
</para>
</refsect1>

Expand Down
8 changes: 4 additions & 4 deletions reference/image/functions/imagecharup.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: a7e5e563d2d2269a6d7ccff506715a3e1a6f3902 Maintainer: dallas Status: ready -->
<!-- CREDITS: mowangjuanzi -->
<!-- EN-Revision: fcd9214294f88b05862a538c6dd94c7872420139 Maintainer: dallas Status: ready -->
<!-- CREDITS: mowangjuanzi, Luffy -->
<refentry xml:id="function.imagecharup" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>imagecharup</refname>
Expand All @@ -10,7 +10,7 @@
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>bool</type><methodname>imagecharup</methodname>
<type>true</type><methodname>imagecharup</methodname>
<methodparam><type>GdImage</type><parameter>image</parameter></methodparam>
<methodparam><type class="union"><type>GdFont</type><type>int</type></type><parameter>font</parameter></methodparam>
<methodparam><type>int</type><parameter>x</parameter></methodparam>
Expand Down Expand Up @@ -66,7 +66,7 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
&return.success;
&return.true.always;
</para>
</refsect1>

Expand Down
8 changes: 4 additions & 4 deletions reference/image/functions/imagecolordeallocate.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 593ea510e853ff034e03f78a4be0daa41661c9d4 Maintainer: dallas Status: ready -->
<!-- CREDITS: mowangjuanzi -->
<!-- EN-Revision: fcd9214294f88b05862a538c6dd94c7872420139 Maintainer: dallas Status: ready -->
<!-- CREDITS: mowangjuanzi, Luffy -->
<refentry xml:id="function.imagecolordeallocate" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>imagecolordeallocate</refname>
Expand All @@ -10,7 +10,7 @@
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>bool</type><methodname>imagecolordeallocate</methodname>
<type>true</type><methodname>imagecolordeallocate</methodname>
<methodparam><type>GdImage</type><parameter>image</parameter></methodparam>
<methodparam><type>int</type><parameter>color</parameter></methodparam>
</methodsynopsis>
Expand Down Expand Up @@ -38,7 +38,7 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
&return.success;
&return.true.always;
</para>
</refsect1>

Expand Down
8 changes: 4 additions & 4 deletions reference/image/functions/imagecolormatch.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 9960a09a5705102bf4dd0ce63e03d9ec716d0015 Maintainer: HonestQiao Status: ready -->
<!-- CREDITS: mowangjuanzi -->
<!-- EN-Revision: fcd9214294f88b05862a538c6dd94c7872420139 Maintainer: HonestQiao Status: ready -->
<!-- CREDITS: mowangjuanzi, Luffy -->
<refentry xml:id="function.imagecolormatch" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>imagecolormatch</refname>
Expand All @@ -10,7 +10,7 @@
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>bool</type><methodname>imagecolormatch</methodname>
<type>true</type><methodname>imagecolormatch</methodname>
<methodparam><type>GdImage</type><parameter>image1</parameter></methodparam>
<methodparam><type>GdImage</type><parameter>image2</parameter></methodparam>
</methodsynopsis>
Expand Down Expand Up @@ -44,7 +44,7 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
&return.success;
&return.true.always;
</para>
</refsect1>

Expand Down
8 changes: 4 additions & 4 deletions reference/image/functions/imagecopy.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 9960a09a5705102bf4dd0ce63e03d9ec716d0015 Maintainer: dallas Status: ready -->
<!-- CREDITS: mowangjuanzi -->
<!-- EN-Revision: fcd9214294f88b05862a538c6dd94c7872420139 Maintainer: dallas Status: ready -->
<!-- CREDITS: mowangjuanzi, Luffy -->
<refentry xml:id="function.imagecopy" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>imagecopy</refname>
Expand All @@ -10,7 +10,7 @@
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>bool</type><methodname>imagecopy</methodname>
<type>true</type><methodname>imagecopy</methodname>
<methodparam><type>GdImage</type><parameter>dst_image</parameter></methodparam>
<methodparam><type>GdImage</type><parameter>src_image</parameter></methodparam>
<methodparam><type>int</type><parameter>dst_x</parameter></methodparam>
Expand Down Expand Up @@ -93,7 +93,7 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
&return.success;
&return.true.always;
</para>
</refsect1>

Expand Down
8 changes: 4 additions & 4 deletions reference/image/functions/imagecopymerge.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 9960a09a5705102bf4dd0ce63e03d9ec716d0015 Maintainer: dallas Status: ready -->
<!-- CREDITS: mowangjuanzi -->
<!-- EN-Revision: fcd9214294f88b05862a538c6dd94c7872420139 Maintainer: dallas Status: ready -->
<!-- CREDITS: mowangjuanzi, Luffy -->
<refentry xml:id="function.imagecopymerge" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>imagecopymerge</refname>
Expand All @@ -10,7 +10,7 @@
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>bool</type><methodname>imagecopymerge</methodname>
<type>true</type><methodname>imagecopymerge</methodname>
<methodparam><type>GdImage</type><parameter>dst_image</parameter></methodparam>
<methodparam><type>GdImage</type><parameter>src_image</parameter></methodparam>
<methodparam><type>int</type><parameter>dst_x</parameter></methodparam>
Expand Down Expand Up @@ -103,7 +103,7 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
&return.success;
&return.true.always;
</para>
</refsect1>

Expand Down
8 changes: 4 additions & 4 deletions reference/image/functions/imagecopymergegray.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 9960a09a5705102bf4dd0ce63e03d9ec716d0015 Maintainer: dallas Status: ready -->
<!-- CREDITS: mowangjuanzi -->
<!-- EN-Revision: fcd9214294f88b05862a538c6dd94c7872420139 Maintainer: dallas Status: ready -->
<!-- CREDITS: mowangjuanzi, Luffy -->
<refentry xml:id="function.imagecopymergegray" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>imagecopymergegray</refname>
Expand All @@ -10,7 +10,7 @@
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>bool</type><methodname>imagecopymergegray</methodname>
<type>true</type><methodname>imagecopymergegray</methodname>
<methodparam><type>GdImage</type><parameter>dst_image</parameter></methodparam>
<methodparam><type>GdImage</type><parameter>src_image</parameter></methodparam>
<methodparam><type>int</type><parameter>dst_x</parameter></methodparam>
Expand Down Expand Up @@ -105,7 +105,7 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
&return.success;
&return.true.always;
</para>
</refsect1>

Expand Down
8 changes: 4 additions & 4 deletions reference/image/functions/imagecopyresampled.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 593ea510e853ff034e03f78a4be0daa41661c9d4 Maintainer: HonestQiao Status: ready -->
<!-- CREDITS: mowangjuanzi -->
<!-- EN-Revision: fcd9214294f88b05862a538c6dd94c7872420139 Maintainer: HonestQiao Status: ready -->
<!-- CREDITS: mowangjuanzi, Luffy -->
<refentry xml:id="function.imagecopyresampled" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>imagecopyresampled</refname>
Expand All @@ -10,7 +10,7 @@
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>bool</type><methodname>imagecopyresampled</methodname>
<type>true</type><methodname>imagecopyresampled</methodname>
<methodparam><type>GdImage</type><parameter>dst_image</parameter></methodparam>
<methodparam><type>GdImage</type><parameter>src_image</parameter></methodparam>
<methodparam><type>int</type><parameter>dst_x</parameter></methodparam>
Expand Down Expand Up @@ -121,7 +121,7 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
&return.success;
&return.true.always;
</para>
</refsect1>

Expand Down
Loading