@@ -193,6 +193,11 @@ PHP 8.5 UPGRADE NOTES
193193 used by a cURL transfer. It is primarily useful when connection reuse or
194194 connection pooling logic is needed in PHP-level applications. When
195195 curl_getinfo() returns an array, this value is available as the "conn_id" key.
196+ . Added support for CURLINFO_QUEUE_TIME_T (libcurl >= 8.6.0) to the curl_getinfo()
197+ function. This constant allows retrieving the time (in microseconds) that the
198+ request spent in libcurl’s connection queue before it was sent.
199+ This value can also be retrieved by passing CURLINFO_QUEUE_TIME_T to the
200+ curl_getinfo() $option parameter.
196201
197202- DOM:
198203 . Added Dom\Element::$outerHTML.
@@ -239,6 +244,16 @@ PHP 8.5 UPGRADE NOTES
239244 process was terminated unexpectedly. In such cases, a warning is emitted
240245 and the function returns false. Previously, these errors were silently
241246 ignored. This change affects only the sendmail transport.
247+ . getimagesize() now supports HEIF/HEIC images.
248+
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).
242257
243258- XSL:
244259 . The $namespace argument of XSLTProcessor::getParameter(),
@@ -312,6 +327,10 @@ PHP 8.5 UPGRADE NOTES
312327- libxml:
313328 . libxml_set_external_entity_loader() now has a formal return type of true.
314329
330+ - OpenSSL:
331+ . openssl_public_encrypt() and openssl_private_decrypt() have new parameter
332+ $digest_algo that allows specifying hash digest algorith for OEAP padding.
333+
315334- PCNTL:
316335 . pcntl_exec() now has a formal return type of false.
317336 . pcntl_waitid() takes an additional resource_usage argument to
@@ -366,7 +385,7 @@ PHP 8.5 UPGRADE NOTES
366385- Sockets:
367386 . socket_create_listen, socket_bind and socket_sendto throw a
368387 ValueError if the port is lower than 0 or greater than 65535,
369- also if any of the hints array entry is indexes numerically.
388+ and also if any of the hints array entries are indexed numerically.
370389 . socket_addrinfo_lookup throws a TypeError if any of the hints
371390 values cannot be cast to int and can throw a ValueError if
372391 any of these values overflow.
@@ -403,8 +422,10 @@ PHP 8.5 UPGRADE NOTES
403422 . get_exception_handler() allows retrieving the current user-defined exception
404423 handler function.
405424 RFC: https://wiki.php.net/rfc/get-error-exception-handler
406- . The clone language construct is now a function.
425+ . The clone language construct is now a function and supports reassigning
426+ (readonly) properties during cloning via the new $withProperties parameter.
407427 RFC: https://wiki.php.net/rfc/clone_with_v2
428+ . Added Closure::getCurrent() to receive currently executing closure.
408429
409430- Curl:
410431 . curl_multi_get_handles() allows retrieving all CurlHandles current
@@ -430,6 +451,9 @@ PHP 8.5 UPGRADE NOTES
430451 . Added grapheme_levenshtein() function.
431452 RFC: https://wiki.php.net/rfc/grapheme_levenshtein
432453
454+ - Opcache:
455+ . Added opcache_is_script_cached_in_file_cache().
456+
433457- Pdo\Sqlite:
434458 . Added support for Pdo\Sqlite::setAuthorizer(), which is the equivalent of
435459 SQLite3::setAuthorizer(). The only interface difference is that the
@@ -447,6 +471,7 @@ PHP 8.5 UPGRADE NOTES
447471 ReflectionConstant::getExtensionName() were introduced.
448472 . ReflectionConstant::getAttributes() was introduced.
449473 RFC: https://wiki.php.net/rfc/attributes-on-constants
474+ . ReflectionProperty::getMangledName() was introduced.
450475
451476- Sqlite:
452477 . Sqlite3Stmt::busy to check if a statement had been fetched
@@ -486,7 +511,7 @@ PHP 8.5 UPGRADE NOTES
486511 CURLFOLLOW_FIRSTONLY.
487512
488513- Fileinfo:
489- . Upgraded to file 5.46.
514+ . Upgraded file from 5.45 to 5.46.
490515 . The return type of finfo_close() has been changed to true, rather
491516 than bool.
492517
@@ -501,7 +526,7 @@ PHP 8.5 UPGRADE NOTES
501526 RFC: https://wiki.php.net/rfc/url_parsing_api
502527
503528- PCRE:
504- . Upgraded to pcre2lib from 10.44 to 10.45.
529+ . Upgraded pcre2lib from 10.44 to 10.45.
505530
506531- PDO_Sqlite:
507532 . Increased minimum release version support from 3.7.7 to 3.7.17.
@@ -517,12 +542,14 @@ PHP 8.5 UPGRADE NOTES
517542
518543- Core:
519544 . PHP_BUILD_DATE.
545+ . PHP_BUILD_PROVIDER.
520546
521547- Curl:
522548 . CURLINFO_USED_PROXY.
523549 . CURLINFO_HTTPAUTH_USED.
524550 . CURLINFO_PROXYAUTH_USED.
525551 . CURLINFO_CONN_ID.
552+ . CURLINFO_QUEUE_TIME_T.
526553 . CURLOPT_INFILESIZE_LARGE.
527554 . CURLFOLLOW_ALL.
528555 . CURLFOLLOW_OBEYCODE.
@@ -555,6 +582,9 @@ PHP 8.5 UPGRADE NOTES
555582 . T_VOID_CAST.
556583 . T_PIPE.
557584
585+ - Standard:
586+ . IMAGETYPE_SVG when libxml is loaded.
587+
558588========================================
55958911. Changes to INI File Handling
560590========================================
@@ -672,6 +702,7 @@ PHP 8.5 UPGRADE NOTES
672702 . Improved unpack() performance with nameless repetitions by avoiding
673703 creating temporary strings and reparsing them.
674704 . Improved pack() performance.
705+ . Minor improvements in array_chunk() performance.
675706
676707- XMLReader:
677708 . Improved property access performance.
0 commit comments