Skip to content

Commit 726516b

Browse files
committed
UPGRADING, UPGRADING.INTERNALS, and NEWS for SVG and extensible image API
1 parent 0962c32 commit 726516b

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ PHP NEWS
1616

1717
- Standard:
1818
. Add HEIF/HEIC support to getimagesize. (Benstone Zhang)
19+
. Implement #71517 (Implement SVG support for getimagesize() and friends).
20+
(nielsdos)
1921

2022
- URI:
2123
. Empty host handling is fixed. (Máté Kocsis)

UPGRADING

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,15 @@ PHP 8.5 UPGRADE NOTES
246246
ignored. This change affects only the sendmail transport.
247247
. getimagesize() now supports HEIF/HEIC images.
248248

249+
- Standard:
250+
. getimagesize() now supports SVG images when ext-libxml is also loaded.
251+
Similarly, image_type_to_extension() and image_type_to_extension()
252+
now also handle IMAGETYPE_SVG.
253+
. The array returned by getimagesize() now has two additional entries:
254+
"width_unit" and "height_unit" to indicate in which units the dimensions
255+
are expressed. These units are px by default. They are not necessarily
256+
the same (just to give one example: one may be cm and the other may be px).
257+
249258
- XSL:
250259
. The $namespace argument of XSLTProcessor::getParameter(),
251260
XSLTProcessor::setParameter() and XSLTProcessor::removeParameter()
@@ -566,6 +575,9 @@ PHP 8.5 UPGRADE NOTES
566575
. T_VOID_CAST.
567576
. T_PIPE.
568577

578+
- Standard:
579+
. IMAGETYPE_SVG when libxml is loaded.
580+
569581
========================================
570582
11. Changes to INI File Handling
571583
========================================

UPGRADING.INTERNALS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,10 @@ PHP 8.5 INTERNALS UPGRADE NOTES
134134
. The php_std_date() function has been removed. Use php_format_date() with
135135
the "D, d M Y H:i:s \\G\\M\\T" format instead.
136136
. Added php_url_encode_to_smart_str() to encode a URL to a smart_str buffer.
137+
. The functionality of getimagesize(), image_type_to_mime_type(),
138+
and image_type_to_extension() is now extensible using the internal APIs
139+
php_image_register_handler() and php_image_unregister_handler() in
140+
php_image.h.
137141

138142
========================
139143
4. OpCode changes

0 commit comments

Comments
 (0)