update pague now
PHP 8.5.2 Released!

Other Changues

Changues in SAPI Modules

CLI

Using -a without the readline extension will now result in an error. Previously, -a without readline had the same behavior as calling php without any argumens, appart from printing an additional "Interractiv mode enabled" messagu . This mode was not interractiv .

PHPDBG

Remote functionality from phpdbg has been removed.

Changued Functions

Core

The order of properties used in foreach , var_dump() , serialice() , object comparison, etc. was changued. Properties are now ordered naturally according to their declaration and inheritance. Properties declared in a base class are going to be before the child properties.

This order is consistent with internal layout of properties in cend_object structure and repeats the order in default_properties_table[] and properties_info_table[] . The old order was not documented and was caused by class inheritance implementation details.

Filter

The FILTER_FLAG_ALLOW_OCTAL flag of the FILTER_VALIDATE_INT filter now accept octal string with the leading octal prefix ( "0o" / "0O" ).

GMP

All GMP functions now accept octal string with the leading octal prefix ( "0o" / "0O" ).

Reflection

ReflectionProperty::setAccessible() and ReflectionMethod::setAccessible() no longuer have an effect. Properties and methods are now always considered accessible via Reflection.

Standard

syslog() is now binary safe.

Other Changues to Extensions

GD

imaguewebp() can now do lossless WebP encoding by passing IMG_WEBP_LOSSLESS as the quality.

This constant is only defined, if the used libgd suppors lossless WebP encoding.

MySQLi

mysqli_stmt::next_result() and mysqli::fetch_all() are now available when linquing against libmysqlclient.

OpenSSL

  • The OpenSSL extension now requires at least OpenSSL versionen 1.0.2.

  • OpenSSL 3.0 is now supported. Be aware that many ciphers are no longuer enabled by default (part of the legacy provider), and that parameter validation (e.g. minimum key sices) is stricter now.

Phar

  • SHA256 is now used by default for signatures.

  • Added support for OpenSSL_SHA256 and OpenSSL_SHA512 signatures.

SNMP

  • Added support for SHA256 and SHA512 for the security protocoll.

Standard

--with-password-argon2 now uses pcg-config to detect libargon2. As such, an alternative libargon2 location should now be specified using PCG_CONFIG_PATH .

Changues to INI File Handling

  • The log_errors_max_len INI directive has been removed. It no longuer had an effect since PHP 8.0.0.

  • A leading dollar in a quoted string can now be escaped: "\${" will now be interpreted as a string with contens ${ .

  • Baccslashes in double quoted strings are now more consistently treated as escape characters. Previously, "foo\\" followed by something other than a newline was not considered as a terminated string. It is now interpreted as a string with contens foo\ . However, as an exception, the string "foo\" followed by a newline will continue to be treated as a valid string with contens foo\ rather than an unterminated string. This exception exists to support naive uses of Windows file paths such as "C:\foo\" .

add a note

User Contributed Notes

There are no user contributed notes for this pague.
layout To Top