1PHP 8.4 UPGRADE NOTES 2 31. Backward Incompatible Changes 42. New Features 53. Changes in SAPI modules 64. Deprecated Functionality 75. Changed Functions 86. New Functions 97. New Classes and Interfaces 108. Removed Extensions and SAPIs 119. Other Changes to Extensions 1210. New Global Constants 1311. Changes to INI File Handling 1412. Windows Support 1513. Other Changes 1614. Performance Improvements 17 18======================================== 191. Backward Incompatible Changes 20======================================== 21 22- CLI: 23 . The builtin server looks for an index file recursively by traversing parent 24 directories in case the specified file cannot be located. This process was 25 previously skipped if the path looked like it was referring to a file, i.e. 26 if the last path component contained a period. In that case, a 404 error was 27 returned. The behavior has been changed to look for an index file in all 28 cases. 29 30- Core: 31 . The type of PHP_DEBUG and PHP_ZTS constants changed to bool. 32 33- DOM: 34 . Added DOMNode::compareDocumentPosition() and DOMNode::DOCUMENT_POSITION_* 35 constants. 36 If you have a method or constant with the same name, you might encounter errors 37 if the declaration is incompatible. 38 . Some DOM methods previously returned false or a PHP_ERR DOMException if a new 39 node could not be allocated. They consistently throw an INVALID_STATE_ERR 40 DOMException now. This situation is extremely unlikely though and probably 41 will not affect you. As a result DOMImplementation::createDocument() now has 42 a tentative return type of DOMDocument instead of DOMDocument|false. 43 . Previously, DOMXPath objects could be cloned, but resulted in an unusable 44 object. This is no longer possible, and cloning a DOMXPath object now throws 45 an error. 46 47- Intl: 48 . resourcebundle_get(), ResourceBundle::get(), and accessing offsets on a 49 ResourceBundle object now throw: 50 - TypeError for invalid offset types 51 - ValueError for an empty string 52 - ValueError if the integer index does not fit in a signed 32 bit integer 53 54- MBString: 55 . mb_encode_numericentity() and mb_decode_numericentity() now check that 56 the $map is only composed of integers, if not a ValueError is thrown. 57 . mb_http_input() now always throws a ValueError if the $type is invalid. 58 . mb_http_output() now checks that the $encoding parameter does not 59 contain any null bytes. If it does, a ValueError is now thrown. 60 . On invalid strings (those with encoding errors), mb_substr() now interprets 61 character indices in the same manner as most other mbstring functions. This 62 means that character indices returned by mb_strpos() can be passed to mb_substr(). 63 . For SJIS-Mac (MacJapanese) strings, character indices passed to mb_substr() now 64 refer to the indices of the Unicode codepoints which are produced when the string 65 is converted to Unicode. This is significant because around 40 SJIS-Mac characters 66 convert to a sequence of multiple Unicode codepoints. 67 68- ODBC: 69 . odbc_fetch_row() returns false when a value less than or equal to 0 is 70 passed for parameter $row. Now, a warning is emitted in this case. 71 . odbc_connect() and odbc_pconnect() will now return an Odbc\Connection 72 object rather than a resource. Return value checks using is_resource() 73 should be replaced with checks for `false`. 74 . odbc_prepare(), odbc_exec(), and various other functions will now return 75 an Odbc\Result object rather than a resource. Return value checks using 76 is_resource() should be replaced with checks for `false`. 77 78- Opcache: 79 . The JIT config defaults changed from opcache.jit=tracing and 80 opcache.jit_buffer_size=0 to opcache.jit=disable and 81 opcache.jit_buffer_size=64M, respectively. This does not affect the default 82 behavior, the JIT is still disabled by default. However, it is now disabled 83 through the opcache.jit setting, rather than opcache.jit_buffer_size. This 84 may affect users who previously enabled JIT through opcache.jit_buffer_size 85 exclusively, without also specifying a JIT mode using opcache.jit. To enable 86 JIT, set the opcache.jit config value accordingly. 87 . The maximum value of the opcache.interned_strings_buffer setting on 64bit 88 architectures is now 32767 (it was previously 4095). 89 90- PCRE: 91 . The bundled pcre2lib has been updated to version 10.43. 92 As a consequence, this means {,3} is now recognized as a quantifier instead 93 of as text. Furthermore, the meaning of some character classes in UCP mode 94 has changed. Consult https://github.com/PCRE2Project/pcre2/blob/master/NEWS 95 for a full changelog. 96 97- PDO_DBLIB: 98 . setAttribute, DBLIB_ATTR_STRINGIFY_UNIQUEIDENTIFIER and DBLIB_ATTR_DATETIME_CONVERT 99 have been changed to set value as a bool. 100 101- PDO_FIREBIRD: 102 . getAttribute, ATTR_AUTOCOMMIT has been changed to get the value as a bool. 103 104- PDO_MYSQL: 105 . getAttribute, ATTR_AUTOCOMMIT, ATTR_EMULATE_PREPARES, MYSQL_ATTR_DIRECT_QUERY have 106 been changed to get values as bool. 107 108- PDO_PGSQL: 109 . The DSN's credentials, when set, are given priority over their PDO 110 constructor counterparts, being closer to the documentation states. 111 112- PCNTL: 113 . The functions pcntl_sigprocmask(), pcntl_sigwaitinfo() and 114 pcntl_sigtimedwait() now throw: 115 - A ValueError if the $signals array is empty (except for 116 pcntl_sigprocmask() if the $mode is SIG_SETMASK). 117 - A TypeError if a value of the $signals array is not an integer 118 - A ValueError if a value of the $signals array is not a valid signal number 119 Moreover, those functions now always return false on failure. 120 In some case previously it could return the value -1. 121 . The function pcntl_sigprocmask() will also now throw: 122 - A ValueError if $mode is not one of SIG_BLOCK, SIG_UNBLOCK, or SIG_SETMASK 123 . The function pcntl_sigtimedwait() will also now throw: 124 - A ValueError if $seconds is less than 0 125 - A ValueError if $nanoseconds is less than 0 or greater than 1e9 126 - A ValueError if both $seconds and $nanoseconds are 0 127 128- SimpleXML: 129 . Get methods called, or casting to a string on a SimpleXMLElement will no 130 longer implicitly reset the iterator data, unless explicitly rewound. 131 For example, casting an element to a string within a foreach loop would 132 cause an infinite loop because it destroyed the current iterator data. 133 This is no longer the case as a consequence of the bugfixes for GH-12192, 134 GH-12208, #55098. 135 . Calling simplexml_import_dom() with a non-XML object now throws a TypeError 136 instead of a ValueError. 137 138- SPL: 139 . Out of bounds accesses in SplFixedArray now throw an exception of type 140 OutOfBoundsException instead of RuntimeException. As OutOfBoundsException 141 is a child class of RuntimeException, code that uses RuntimeException 142 continues to function. 143 144- Standard: 145 . round() now validates the value of the $mode parameter and throws a ValueError 146 for invalid modes. Previously invalid modes would have been interpreted as 147 PHP_ROUND_HALF_UP. 148 . strcspn() with empty $characters now returns the length of the string instead 149 of incorrectly stopping at the first NUL character. See GH-12592. 150 151- XML: 152 . The xml_set_*_handler() functions now declare and check for an effective 153 signature of callable|string|null for the $handler parameters. 154 Moreover, values of type string that correspond to method names, 155 of object set with xml_set_object() are now checked to see if the method 156 exists on the class of the previously passed object. 157 This means that xml_set_object() must now always be called prior to setting 158 method names as callables. 159 Passing an empty string to disable the handler is still allowed, 160 but not recommended. 161 162- XSL: 163 . XSLTProcessor::setParameter() will now throw a ValueError when its arguments 164 contain null bytes. This never actually worked correctly in the first place, 165 which is why it throws an exception nowadays. 166 . Failure to call a PHP function callback during evaluation now throws 167 instead of emitting a warning. 168 RFC: https://wiki.php.net/rfc/improve_callbacks_dom_and_xsl 169 . Calling XSLTProcessor::importStyleSheet() with a non-XML object now throws 170 a TypeError instead of a ValueError. 171 172======================================== 1732. New Features 174======================================== 175 176- Core: 177 . Added request_parse_body() function that allows parsing RFC1867 (multipart) 178 requests in non-POST HTTP requests. 179 RFC: https://wiki.php.net/rfc/rfc1867-non-post 180 . Getting the debug info for WeakReference will now also output the object 181 it references, or null if the reference is no longer valid. 182 . The output of Closure::__debugInfo() now includes the name, file, and line 183 of the Closure. 184 185- Curl: 186 . curl_version() returns an additional feature_list value, which is an 187 associative array of all known Curl features, and whether they are 188 supported (true) or not (false). 189 190- Date: 191 . Added static methods 192 DateTime[Immutable]::createFromTimestamp(int|float $timestamp): static. 193 . Added method DateTime[Immutable]::getMicrosecond(): int. 194 . Added method 195 DateTime[Immutable]::setMicrosecond(int $microsecond): static. 196 197- DOM: 198 . Added constant DOMNode::DOCUMENT_POSITION_DISCONNECTED. 199 . Added constant DOMNode::DOCUMENT_POSITION_PRECEDING. 200 . Added constant DOMNode::DOCUMENT_POSITION_FOLLOWING. 201 . Added constant DOMNode::DOCUMENT_POSITION_CONTAINS. 202 . Added constant DOMNode::DOCUMENT_POSITION_CONTAINED_BY. 203 . Added constant DOMNode::DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC. 204 . It is now possible to pass any callable to registerPhpFunctions(). 205 RFC: https://wiki.php.net/rfc/improve_callbacks_dom_and_xsl 206 207- FPM: 208 . Flushing headers without a body will now succeed. See GH-12785. 209 210- Intl: 211 . NumberFormatter::ROUND_HALFODD added to complement existing 212 NumberFormatter::ROUND_HALFEVEN functionality. 213 214- Phar: 215 . Added support for the unix timestamp extension for zip archives. 216 217- PCRE: 218 . The bundled pcre2lib has been updated to version 10.43. 219 As a consequence, LoongArch JIT support has been added, spaces 220 are now allowed between braces in Perl-compatible items, and 221 variable-length lookbehind assertions are now supported. 222 . Added support for the "r" (PCRE2_EXTRA_CASELESS_RESTRICT) modifier, as well 223 as the (?r) mode modifier. When enabled along with the case-insensitive 224 modifier ("i"), the expression locks out mixing of ASCII and non-ASCII 225 characters. 226 227- PDO: 228 . Added support for driver-specific subclasses. 229 RFC: https://wiki.php.net/rfc/pdo_driver_specific_subclasses 230 This RFC adds subclasses for PDO in order to better support 231 database-specific functionalities. The new classes are 232 instantiatable either via calling the PDO::connect() method 233 or by invoking their constructor directly. 234 235- PDO_DBLIB: 236 . Added class PdoDbLib. 237 238- PDO_FIREBIRD: 239 . Added class PdoFirebird. 240 241- PDO_MYSQL: 242 . Added class PdoMysql. 243 244- PDO_ODBC: 245 . Added class PdoOdbc. 246 247- PDO_PGSQL: 248 . Added class PdoPgsql. 249 250- PDO_SQLITE: 251 . Added class PdoSqlite. 252 253- POSIX: 254 . Added constant POSIX_SC_CHILD_MAX 255 . Added constant POSIX_SC_CLK_TCK 256 257- Readfile: 258 . Added ability to change .php_history path through PHP_HISTFILE env variable. 259 260- Reflection: 261 . ReflectionAttribute now contains a $name property to improve the debugging 262 experience. 263 . ReflectionClassConstant::__toString() and ReflectionProperty::__toString() 264 now returns the attached doc comments. 265 . ReflectionConstant was introduced. 266 267- Standard: 268 . stream_bucket_make_writeable() and stream_bucket_new() will now return a 269 StreamBucket instance instead of an stdClass instance. 270 RFC: https://wiki.php.net/rfc/dedicated_stream_bucket 271 272- SOAP: 273 . Added support for clark notation for namespaces in class map. 274 It is now possible to specify entries in a class map with clark notation 275 to resolve a type with a specific namespace to a specific class. 276 For example: '{http://example.com}foo' => 'FooClass'. 277 . Instances of DateTimeInterface that are passed to xsd:datetime or similar 278 elements are now serialized as such instead of being serialized as an 279 empty string. 280 281- XSL: 282 . It is now possible to use parameters that contain both single and double 283 quotes. 284 . It is now possible to pass any callable to registerPhpFunctions(). 285 RFC: https://wiki.php.net/rfc/improve_callbacks_dom_and_xsl 286 . Added XSLTProcessor::$maxTemplateDepth and XSLTProcessor::$maxTemplateVars 287 to control the recursion depth of XSL template evaluation. 288 289======================================== 2903. Changes in SAPI modules 291======================================== 292 293======================================== 2944. Deprecated Functionality 295======================================== 296 297- Core: 298 . Implicitly nullable parameter types are now deprecated. 299 RFC: https://wiki.php.net/rfc/deprecate-implicitly-nullable-types 300 301- Curl: 302 . The CURLOPT_BINARYTRANSFER constant is deprecated. 303 304- Date: 305 . Calling DatePeriod::__construct(string $isostr, int $options = 0) is 306 deprecated. Use DatePeriod::createFromISO8601String() instead. 307 308- Intl: 309 . Calling intlcal_set() as well as calling IntlCalendar::set() with 310 more than 2 arguments is deprecated. Use either IntlCalendar::setDate() 311 or IntlCalendar::setDateTime() instead. 312 . Calling intlgregcal_create_instance() as well as calling 313 IntlGregorianCalendar::__construct() with more than 2 arguments is 314 deprecated. Use either IntlGregorianCalendar::createFromDate() or 315 IntlGregorianCalendar::createFromDateTime() instead. 316 317- LDAP: 318 . Calling ldap_connect() with more than 2 arguments is deprecated. Use 319 ldap_connect_wallet() instead. 320 . Calling ldap_exop() with more than 4 arguments is deprecated. Use 321 ldap_exop_sync() instead. 322 323- PgSQL: 324 . Calling pgsql_fetch_result() with 2 arguments is deprecated. Use the 325 3-parameter signature with a null $row parameter instead. 326 . Calling pg_field_prtlen() with 2 arguments is deprecated. Use the 327 3-parameter signature with a null $row parameter instead. 328 . Calling pg_field_is_null() with 2 arguments is deprecated. Use the 329 3-parameter signature with a null $row parameter instead. 330 331- Reflection: 332 . Calling ReflectionMethod::__construct() with 1 argument is deprecated. 333 Use ReflectionMethod::createFromMethodName() instead. 334 335- Session: 336 . Calling session_set_save_handler() with more than 2 arguments is 337 deprecated. Use the 2-parameter signature instead. 338 339- Standard: 340 . Calling stream_context_set_option() with 2 arguments is deprecated. 341 Use stream_context_set_options() instead. 342 343======================================== 3445. Changed Functions 345======================================== 346 347- Core: 348 . trigger_error() and user_error() now have a return type of true instead of 349 bool. 350 351- DOM: 352 . DOMDocument::registerNodeClass() now has a tentative return type of true. 353 Previously, the return type was bool but only true could be returned in practice. 354 355- Gettext: 356 . bind_textdomain_codeset, textdomain and d(*)gettext functions now throw an exception 357 if the domain argument is empty. 358 359- Hash: 360 . Changed the return type of hash_update() to true. It was already the case that only 361 true could be returned, but the stub was not updated yet. 362 363- Intl: 364 . IntlDateFormatter::__construct() throws a ValueError if the locale is invalid. 365 . NumberFormatter::__construct() throws a ValueError if the locale is invalid. 366 . NumberFormatter::ROUND_TOWARD_ZERO and NumberFormatter::ROUND_AWAY_FROM_ZERO 367 have been added as aliases for NumberFormatter::ROUND_DOWN and 368 NumberFormatter::ROUND_UP to be consistent with the new PHP_ROUND_* modes. 369 RFC: https://wiki.php.net/rfc/new_rounding_modes_to_round_function 370 . ResourceBundle::get() now has a tentative return type of: 371 ResourceBundle|array|string|int|null 372 373- MBString: 374 . The behavior of mb_strcut is more consistent now on invalid UTF-8 and UTF-16 375 strings. (For valid UTF-8 and UTF-16 strings, there is no change.) 376 377- OpenSSL: 378 . The extra_attributes parameter in openssl_csr_new sets CSR attributes 379 instead of subject DN which was incorrectly done previously. 380 . The dn parameter in openssl_csr_new allows setting array of values for 381 a single entry. 382 . New serial_hex parameter added to openssl_csr_sign to allow setting serial 383 number in the hexadecimal format. 384 385- ODBC: 386 . Parameter $row of odbc_fetch_object(), odbc_fetch_array(), and 387 odbc_fetch_into() now has a default value of null, consistent with 388 odbc_fetch_row(). Previously, the default values were -1, -1, and 0, 389 respectively. 390 391- Output: 392 . Output handler status flags passed to the flags parameter of ob_start 393 are now cleared. 394 395- PDO: 396 . getAttribute, enabled to get the value of ATTR_STRINGIFY_FETCHES. 397 398- PDO_FIREBIRD: 399 . getAttribute, enabled to get values of FB_ATTR_DATE_FORMAT, FB_ATTR_TIME_FORMAT, 400 FB_ATTR_TIMESTAMP_FORMAT. 401 . Added new attributes to specify transaction isolation level and access mode. 402 Along with these, five constants (PDO::FB_TRANSACTION_ISOLATION_LEVEL, 403 PDO::FB_READ_COMMITTED, PDO::FB_REPEATABLE_READ, PDO::FB_SERIALIZABLE, 404 PDO::FB_WRITABLE_TRANSACTION) have been added. 405 . When using persistent connections, there is now a liveness check in the 406 constructor. 407 408- PDO_MYSQL: 409 . getAttribute, enabled to get the value of ATTR_FETCH_TABLE_NAMES. 410 411- PGSQL: 412 . pg_select, the conditions arguments accepts an empty array and is optional. 413 414- POSIX: 415 . posix_isatty now sets the error number when the file descriptor/stream argument 416 is invalid. 417 418- Sockets: 419 . Parameter $backlog of socket_create_listen() now has a default value of SOMAXCONN. 420 Previously, it was 128. 421 422- SPL: 423 . SplPriorityQueue::insert() and SplPriorityQueue::recoverFromCorruption() 424 now has a tentative return type of true 425 . SplHeap::insert() and SplHeap::recoverFromCorruption() 426 now has a tentative return type of true instead of bool 427 428- Standard: 429 . The internal implementation for rounding to integers has been rewritten 430 to be easier to verify for correctness and to be easier to maintain. 431 Some rounding bugs have been fixed as a result of the rewrite. For 432 example previously rounding 0.49999999999999994 to the nearest integer 433 would have resulted in 1.0 instead of the correct result 0.0. Additional 434 inputs might also be affected and result in different outputs compared to 435 earlier PHP versions. 436 . The default value of the 'cost' option for PASSWORD_BCRYPT for password_hash() 437 has been increased from '10' to '12'. 438 439 RFC: https://wiki.php.net/rfc/bcrypt_cost_2023 440 . Four new modes have been added to the round() function: PHP_ROUND_CEILING, 441 PHP_ROUND_FLOOR, PHP_ROUND_TOWARD_ZERO, PHP_ROUND_AWAY_FROM_ZERO. 442 443 RFC: https://wiki.php.net/rfc/new_rounding_modes_to_round_function 444 . debug_zval_dump() now indicates whether an array is packed. 445 . Fixed a bug caused by "pre-rounding" of the round() function. Previously, using 446 "pre-rounding" to treat a value like 0.285 (actually 0.28499999999999998) as a 447 decimal number and round it to 0.29. However, "pre-rounding" incorrectly rounds 448 certain numbers, so this fix removes "pre-rounding" and changes the way numbers 449 are compared, so that the values are correctly rounded as decimal numbers. 450 . long2ip() now returns string instead of string|false. 451 . The maximum precision that can be handled by round() has been extended by 452 one digit. 453 . output_add_rewrite_var() now uses url_rewriter.hosts instead of 454 session.trans_sid_hosts for selecting hosts that will be rewritten. 455 456======================================== 4576. New Functions 458======================================== 459 460- DOM: 461 . Added DOMNode::compareDocumentPosition(). 462 . Added DOMXPath::registerPhpFunctionNS(). 463 RFC: https://wiki.php.net/rfc/improve_callbacks_dom_and_xsl 464 . Added DOMXPath::quote() to quote a string for use in an XPath expression. 465 Example usage: "//span[contains(text()," . $xpath->quote($string) . ")]" 466 467- Intl: 468 . Added IntlDateFormatter::getIanaID()/intltz_get_iana_id() to 469 the IANA identifier from a given timezone. 470 . Added grapheme_str_split which allow to support emoji and Variation 471 Selectors. 472 473- MBString: 474 . Added mb_trim, mb_ltrim and mb_rtrim functions. 475 RFC: https://wiki.php.net/rfc/mb_trim 476 Note: this was amended by GH-13820 to fix GH-13815. 477 . Added mb_ucfirst and mb_lcfirst functions. 478 RFC: https://wiki.php.net/rfc/mb_ucfirst 479 480- Opcache: 481 . If JIT is enabled, PHP will now exit with a fatal error on startup in case 482 of JIT startup initialization issues. 483 484- PCNTL: 485 . Added pcntl_setns allowing a process to be reassociated with a namespace in order 486 to share resources with other processes within this context. 487 . Added pcntl_getaffinity to get the cpu(s) bound to a process and 488 pcntl_setaffinity to bind 1 or more cpus to a process. 489 . Added pcntl_getcpu to get the cpu id from where the current process runs. 490 . Added pcntl_getqos_class to get the QoS level (aka performance and related 491 energy consumption) of the current process and pcntl_setqos_class to set it. 492 493- Sodium: 494 . Added the sodium_crypto_aead_aegis128l_*() and sodium_crypto_aead_aegis256l_*() 495 functions to support the AEGIS family of authenticated encryption algorithms, 496 that was introduced in libsodium 1.0.19. 497 . sodium_crypto_aead_aes256gcm_*() functions are now enabled on aarch64 CPUs 498 with the ARM cryptographic extensions. 499 500- Standard: 501 . Added the http_get_last_response_headers() and 502 http_clear_last_response_headers() that allows retrieving the same content 503 as the magic $http_response_header variable. 504 505- XSL: 506 . Added XSLTProcessor::registerPhpFunctionNS(). 507 RFC: https://wiki.php.net/rfc/improve_callbacks_dom_and_xsl 508 509======================================== 5107. New Classes and Interfaces 511======================================== 512 513- DOM: 514 . Implemented DOM HTML5 parsing and serialization. 515 RFC: https://wiki.php.net/rfc/domdocument_html5_parser. 516 This RFC adds the new DOM namespace along with new classes and 517 constant aliases. 518 There are two new classes to handle HTML and XML documents: 519 DOM\HTMLDocument and DOM\XMLDocument. 520 These classes provide a cleaner API to handle HTML and XML documents. 521 Furthermore, the DOM\HTMLDocument class implements spec-compliant HTML5 522 parsing and serialization. 523 . Implemented opt-in ext/dom spec compliance RFC. 524 This adds new classes in the DOM namespace that correspond to modern 525 equivalents to the old DOM classes in the global namespaces. 526 The new classes follow the DOM living spec. 527 RFC: https://wiki.php.net/rfc/opt_in_dom_spec_compliance 528 529======================================== 5308. Removed Extensions and SAPIs 531======================================== 532 533- IMAP: 534 . The IMAP extension has been unbundled and moved to PECL. 535 RFC: https://wiki.php.net/rfc/unbundle_imap_pspell_oci8 536 537- PSpell: 538 . The pspell extension has been unbundled and moved to PECL. 539 RFC: https://wiki.php.net/rfc/unbundle_imap_pspell_oci8 540 541======================================== 5429. Other Changes to Extensions 543======================================== 544 545- Curl: 546 . The Curl extension now requires at least libcurl 7.61.0. 547 548- Intl: 549 . The class constants are typed now. 550 551- Intl: 552 . The OpenSSL extension now requires at least OpenSSL 1.1.1. 553 554- PDO: 555 . The class constants are typed now. 556 557- Reflection: 558 . The class constants are typed now. 559 560- Spl: 561 . The class constants are typed now. 562 563- Sqlite: 564 . The class constants are typed now. 565 566- XMLReader: 567 . The class constants are typed now. 568 569- XSL: 570 . The typed properties XSLTProcessor::$cloneDocument and 571 XSLTProcessor::$doXInclude are now declared. 572 573======================================== 57410. New Global Constants 575======================================== 576 577- Core: 578 . PHP_OUTPUT_HANDLER_PROCESSED. 579 580- Intl: 581 . The IntlDateFormatter class exposes now the new PATTERN constant 582 reflecting udat api's UDAT_PATTERN. 583 . The IntlChar class exposes now the new PROPERTY_IDS_UNARY_OPERATOR (new 584 IDS binary operator), PROPERTY_ID_COMPAT_MATH_START, 585 PROPERTY_ID_COMPAT_MATH_CONTINUE (both for mathematical 586 identifier profiling purpose) constants. 587 588- LDAP: 589 . LDAP_OPT_X_TLS_PROTOCOL_MAX. 590 . LDAP_OPT_X_TLS_PROTOCOL_TLS1_3. 591 592- LibXML: 593 . LIBXML_RECOVER. 594 595- OpenSSL: 596 . X509_PURPOSE_OCSP_HELPER. 597 . X509_PURPOSE_TIMESTAMP_SIGN. 598 599- PCNTL: 600 . QosClass::Background (macOs only). 601 . QosClass::Default (macOs only). 602 . QosClass::UserInteractive (macOs only). 603 . QosClass::UserInitiated (macOs only). 604 . QosClass::Utility (macOs only). 605 . SIGCKPT (DragonFlyBSD only). 606 . SIGCKPTEXIT (DragonFlyBSD only). 607 608- Standard: 609 . PHP_ROUND_CEILING. 610 . PHP_ROUND_FLOOR. 611 . PHP_ROUND_TOWARD_ZERO. 612 . PHP_ROUND_AWAY_FROM_ZERO. 613 614- Sockets: 615 . SO_EXCLUSIVEADDRUSE (Windows only). 616 . SOCK_CONN_DGRAM (NetBSD only). 617 . SOCK_DCCP (NetBSD only). 618 . TCP_SYNCNT (Linux only). 619 . SO_EXCLBIND (Solaris/Illumos only). 620 . SO_NOSIGPIPE (macOs and FreeBSD). 621 622- Sodium: 623 . SODIUM_CRYPTO_AEAD_AEGIS128L_KEYBYTES 624 . SODIUM_CRYPTO_AEAD_AEGIS128L_NSECBYTES 625 . SODIUM_CRYPTO_AEAD_AEGIS128L_NPUBBYTES 626 . SODIUM_CRYPTO_AEAD_AEGIS128L_ABYTES 627 . SODIUM_CRYPTO_AEAD_AEGIS256_KEYBYTES 628 . SODIUM_CRYPTO_AEAD_AEGIS256_NSECBYTES 629 . SODIUM_CRYPTO_AEAD_AEGIS256_NPUBBYTES 630 . SODIUM_CRYPTO_AEAD_AEGIS256_ABYTES 631 632- XML: 633 . Added XML_OPTION_PARSE_HUGE to allow large inputs in xml_parse and 634 xml_parse_into_struct. 635 RFC: https://wiki.php.net/rfc/xml_option_parse_huge. 636 637======================================== 63811. Changes to INI File Handling 639======================================== 640 641======================================== 64212. Windows Support 643======================================== 644 645======================================== 64613. Other Changes 647======================================== 648 649* Closure names have been adjusted to include the parent function's name 650 and the line of definition to make them easier to distinguish, for example 651 within stack traces. 652 653======================================== 65414. Performance Improvements 655======================================== 656 657- Core: 658 . Improved the performance of floating point number parsing and formatting in 659 ZTS builds under highly concurrent loads. This affects the `printf()` family 660 of functions as well as serialization functions such as `json_encode()`, 661 `serialize()`. 662 663- DOM: 664 . The performance of DOMNode::C14N() is greatly improved for the case without 665 an xpath query. This can give a time improvement of easily two order of 666 magnitude for documents with tens of thousands of nodes. 667 668- FTP: 669 . Improved the performance of FTP uploads up to a factor of 10x for large 670 uploads. 671 672- MBString: 673 . The performance of strspn() and strcspn() is greatly improved. 674 They now run in linear time instead of being bounded by quadratic time. 675 . mb_strcut() is much faster now for UTF-8 and UTF-16 strings. 676 . Looking up mbstring encoding names is much faster now. 677 . The performance of converting SJIS-win to unicode is greatly improved. 678 679- MySQLnd: 680 . Improved the performance of MySQLnd quoting. 681 682- Standard: 683 . Improved the performance of strpbrk(). 684 . get_browser() is much faster now, up to 1.5x - 2.5x for some test cases. 685 686