PHP 8.6
New Functions
Core
- clamp() returns the given value if in range, else returns the nearest bound.
- stream_last_errors()
- stream_clear_errors()
- stream_socket_get_crypto_status()
GMP
- gmp_powm_sec()
- gmp_prevprime()
Intl
- grapheme_strrev()
- IntlDatePatternGenerator::getSkeleton()
- IntlDatePatternGenerator::getBaseSkeleton()
- Locale::getDisplayKeyword()
- locale_get_display_keyword()
- Locale::getDisplayKeywordValue()
- locale_get_display_keyword_value()
- SpoofChecker::areBidiConfusable()
- SpoofChecker::getBidiSkeleton()
- SpoofChecker::getSkeleton()
Reflection
- ReflectionAttribute::inNamespace()
- ReflectionAttribute::getNamespaceName()
- ReflectionAttribute::getShortName()
- ReflectionConstant::inNamespace()
- ReflectionParameter::getDocComment()
- ReflectionProperty::isReadable()
- ReflectionProperty::isWritable()
SNMP
- snmp_init_mib()
- snmp_set_mib_option()
- snmp_set_output_option()
- snmp_set_string_output_format()
- SNMP::setOidOutputFormat()
- SNMP::setStringOutputFormat()
Sodium
- sodium_crypto_ipcrypt_keygen()
- sodium_crypto_ipcrypt_encrypt()
- sodium_crypto_ipcrypt_decrypt()
- sodium_crypto_ipcrypt_nd_keygen()
- sodium_crypto_ipcrypt_nd_encrypt()
- sodium_crypto_ipcrypt_nd_decrypt()
- sodium_crypto_ipcrypt_ndx_keygen()
- sodium_crypto_ipcrypt_ndx_encrypt()
- sodium_crypto_ipcrypt_ndx_decrypt()
- sodium_crypto_ipcrypt_pfx_keygen()
- sodium_crypto_ipcrypt_pfx_encrypt()
- sodium_crypto_ipcrypt_pfx_decrypt()
- sodium_bin2ip()
- sodium_ip2bin()
- sodium_crypto_xof_shake128()
- sodium_crypto_xof_shake128_init()
- sodium_crypto_xof_shake128_update()
- sodium_crypto_xof_shake128_squeeze()
- sodium_crypto_xof_shake256()
- sodium_crypto_xof_shake256_init()
- sodium_crypto_xof_shake256_update()
- sodium_crypto_xof_shake256_squeeze()
- sodium_crypto_xof_turboshake128()
- sodium_crypto_xof_turboshake128_init()
- sodium_crypto_xof_turboshake128_update()
- sodium_crypto_xof_turboshake128_squeeze()
- sodium_crypto_xof_turboshake256()
- sodium_crypto_xof_turboshake256_init()
- sodium_crypto_xof_turboshake256_update()
- sodium_crypto_xof_turboshake256_squeeze()
The following functions expose the X-Wing KEM (hybrid ML-KEM768+X25519, libsodium's recommended KEM). They are available when PHP is built against libsodium 1.0.22 or later.
- sodium_crypto_kem_keypair()
- sodium_crypto_kem_seed_keypair()
- sodium_crypto_kem_secretkey()
- sodium_crypto_kem_publickey()
- sodium_crypto_kem_enc()
- sodium_crypto_kem_dec()
The following functions expose the ML-KEM768 (FIPS 203) KEM. They are available when PHP is built against libsodium 1.0.22 or later.
- sodium_crypto_kem_mlkem768_keypair()
- sodium_crypto_kem_mlkem768_seed_keypair()
- sodium_crypto_kem_mlkem768_secretkey()
- sodium_crypto_kem_mlkem768_publickey()
- sodium_crypto_kem_mlkem768_enc()
- sodium_crypto_kem_mlkem768_dec()
URI
- Uri\Rfc3986\Uri::getUriType()
- Uri\WhatWg\Url::isSpecialScheme()
- Uri\Rfc3986\Uri::getHostType()
- Uri\WhatWg\Url::getHostType()
- Uri\WhatWg\url_percent_encode()
Zip
- ZipArchive::openString()
- ZipArchive::closeString()