[PHP 8.1] Add new global GD constants (#1545)

This commit is contained in:
Sergey Panteleev 2022-04-26 15:22:29 +03:00 committed by GitHub
parent 5fc91f8abb
commit 928f051323
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 30 additions and 1 deletions

View file

@ -77,6 +77,18 @@
</listitem>
</varlistentry>
<varlistentry xml:id="constant.img-avif">
<term>
<constant>IMG_AVIF</constant>
(<type>int</type>)
</term>
<listitem>
&gd.constants.types;
<simpara>
Available as of PHP 8.1.0.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.img-bmp">
<term>
<constant>IMG_BMP</constant>
@ -157,6 +169,17 @@
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.img-webp-lossless">
<term>
<constant>IMG_WEBP_LOSSLESS</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
Available as of PHP 8.1.0.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.img-color-tiled">
<term>
<constant>IMG_COLOR_TILED</constant>

View file

@ -26,7 +26,7 @@
<para>
Returns a bit-field corresponding to the image formats supported by the
version of GD linked into PHP. The following bits are returned,
<constant>IMG_BMP</constant> |
<constant>IMG_AVIF</constant> | <constant>IMG_BMP</constant> |
<constant>IMG_GIF</constant> | <constant>IMG_JPG</constant> |
<constant>IMG_PNG</constant> | <constant>IMG_WBMP</constant> |
<constant>IMG_XPM</constant> | <constant>IMG_WEBP</constant>.
@ -45,6 +45,12 @@
</row>
</thead>
<tbody>
<row>
<entry>8.1.0</entry>
<entry>
<constant>IMG_AVIF</constant> added.
</entry>
</row>
<row>
<entry>7.2.0</entry>
<entry>