Skip to content

Commit f8bab1d

Browse files
authored
IMAGETYPE_HEIF: Add newly added constant introduced in PHP 8.5 (#5042)
1 parent 50f76f2 commit f8bab1d

4 files changed

Lines changed: 29 additions & 0 deletions

File tree

appendices/migration85/constants.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,9 @@
160160
<title>Standard</title>
161161

162162
<simplelist>
163+
<member>
164+
<constant>IMAGETYPE_HEIF</constant>
165+
</member>
163166
<member>
164167
<constant>IMAGETYPE_SVG</constant>
165168
when libxml is loaded.

reference/exif/functions/exif-imagetype.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,10 @@
135135
<entry>19</entry>
136136
<entry><constant>IMAGETYPE_AVIF</constant></entry>
137137
</row>
138+
<row>
139+
<entry>20</entry>
140+
<entry><constant>IMAGETYPE_HEIF</constant></entry>
141+
</row>
138142
</tbody>
139143
</tgroup>
140144
</table>
@@ -174,6 +178,12 @@
174178
Added AVIF support.
175179
</entry>
176180
</row>
181+
<row>
182+
<entry>8.5.0</entry>
183+
<entry>
184+
Added HEIF support.
185+
</entry>
186+
</row>
177187
</tbody>
178188
</tgroup>
179189
</informaltable>

reference/image/constants.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -701,6 +701,18 @@
701701
</simpara>
702702
</listitem>
703703
</varlistentry>
704+
<varlistentry xml:id="constant.imagetype-heif">
705+
<term>
706+
<constant>IMAGETYPE_HEIF</constant>
707+
(<type>int</type>)
708+
</term>
709+
<listitem>
710+
&gd.constants.type;
711+
<simpara>
712+
(Available as of PHP 8.5.0)
713+
</simpara>
714+
</listitem>
715+
</varlistentry>
704716
<varlistentry xml:id="constant.imagetype-unknown">
705717
<term>
706718
<constant>IMAGETYPE_UNKNOWN</constant>

reference/image/functions/image-type-to-mime-type.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,10 @@
125125
<entry><constant>IMAGETYPE_AVIF</constant></entry>
126126
<entry><literal>image/avif</literal></entry>
127127
</row>
128+
<row>
129+
<entry><constant>IMAGETYPE_HEIF</constant></entry>
130+
<entry><literal>image/heif</literal></entry>
131+
</row>
128132
</tbody>
129133
</tgroup>
130134
</table>

0 commit comments

Comments
 (0)