Other ChangesPHP CoreSet(raw)cookie accepts $option Argumentsetcookie and setrawcookie now also support the following signature:
bool setcookie(string
where $name , string $value = "", array $options = [])$options is an associative array which may have
any of the keys "expires" , "path" ,
"domain" , "secure" ,
"httponly" and "samesite" .
New Syslog ini Directives
The following ini Directives have been added to customize logging, if
error_log is set to
Garbage CollectionThe cyclic GC has been enhanced, which may result in considerable performance improvements. Miscellaneous
var_export now exports stdClass
objects as an array cast to an object ( debug_zval_dump was changed to display recursive arrays and objects in the same way as var_dump. Now, it doesn't display them twice. array_push and array_unshift can now also be called with a single argument, which is particularly convenient wrt. the spread operator. Interactive PHP Debugger
The unused constants FastCGI Process ManagerThe getallheaders function is now also available. Client URL Librarylibcurl ≥ 7.15.5 is now required. Data Filtering
FTP
The default transfer mode has been changed to Internationalization Functions
Introduced JavaScript Object Notation
A new flag has been added, Multibyte StringThe configuration option --with-libmbfl is no longer available. ODBC (Unified)
Support for OPcache
The OpenSSL
The Regular Expressions (Perl-Compatible)The PCRE extension has been upgraded to PCRE2, which may cause minor behavioral changes (for instance, character ranges in classes are now more strictly interpreted), and augments the existing regular expression syntax.
preg_quote now also escapes the Microsoft SQL Server and Sybase Functions (PDO_DBLIB)
The attribute
The DATETIME2 columns are now treated like DATETIME columns. SQLite Functions (PDO_SQLITE)
SQLite3 databases can now be opened in read-only mode by setting the
new Session Handlingsession_set_cookie_params now also supports the following signature:
bool session_set_cookie_params(array
where $options )$options is an associative array which may have
any of the keys "lifetime" , "path" ,
"domain" , "secure" ,
"httponly" and "samesite" . Accordingly,
the return value of session_get_cookie_params now also
has an element with the key "samesite" .
Furthermore, the new session.cookie_samesite ini option to
set the default of the SameSite directive for cookies has been added. It
defaults to "" (empty string), so no SameSite directive is
set. Can be set to "Lax" or "Strict" ,
which sets the respective SameSite directive.
Tidy
Building against » tidyp is now also
supported transparently. Since tidyp offers no API to get the release date,
tidy_get_release and tidy::getRelease
return XML ParserThe return value of the xml_set_external_entity_ref_handler callback is no longer ignored if the extension has been built against libxml. Formerly, the return value has been ignored, and parsing did never stop. ZipBuilding against the bundled libzip is discouraged, but still possible by adding --without-libzip to the configuration. Zlib CompressionThe zlib/level context option for the compress.zlib wrapper to facilitate setting the desired compression level has been added. |