Closed
Description
Pages which need to be added/modified for complete documentation of PHP 8.2:
Based of the migration guide: https://www.php.net/manual/en/migration82.php (#1799)
Note
This issue is still a Work In Progress
Core
- New features:
- Type system (Rewrite type section #1726)
- false null standalone
- true
- DNF types
- Sensitive Parameter attribute
- Readonly classes (Document readonly classes #1996)
- error_log_mode INI directive (Part of Add initial version of the PHP 8.2 migration guide #1799)
- Declaring constants in traits (Update trait docs for PHP-8.2 #1995)
- Type system (Rewrite type section #1726)
- Deprecated
- Dynamic properties (Document dynamic properties #1942)
- "${var}" and "${expr}" style string interpolations (Rewrite and flesh out string interpolation docs #2000)
Classes:
- New classes
- Random Extension (based on random.stub.php Bootstrap ext/random docs with docgen #1916 )
- Random\Engine
- Random\Engine\Mt19937
- Random\Engine\PcgOneseq128XslRr64
- Random\Engine\Xoshiro256StarStar
- Random\Engine\Secure
- Random\CryptoSafeEngine
- Random\Randomizer
- Random\RandomError
- Random\BrokenRandomEngineError
- Random\RandomException
- Random\Engine
- Random Extension (based on random.stub.php Bootstrap ext/random docs with docgen #1916 )
Functions/Methods:
- New functions:
- cURL
-
curl_upkeep()
([PHP 8.2] Addcurl_upkeep
description #1807)
-
- IMAP
-
imap_is_open()
([PHP 8.2] added imap_is_open documentation #2583)
-
- MySQLi
-
mysqli_execute_query()
([PHP 8.2] Document mysqli_execute_query #1855)
-
- OpenSSL
-
openssl_cipher_key_length()
([PHP 8.2] Addopenssl_cipher_key_length
description #1808)
-
- Reflection
-
ReflectionFunction::isAnonymous()
([PHP 8.2] AddReflectionFunction::isAnonymous
andReflectionMethod::hasPrototype
methods #1742) -
ReflectionMethod::hasPrototype()
([PHP 8.2] AddReflectionFunction::isAnonymous
andReflectionMethod::hasPrototype
methods #1742)
-
- Sodium
-
sodium_crypto_stream_xchacha20_xor_ic()
([PHP 8.2] Addsodium_crypto_stream_xchacha20_xor_ic
description #1817)
-
- Standard
-
memory_reset_peak_usage()
(Add docs formemory_reset_peak_usage()
#1809) -
ini_parse_quantity()
(add docs forini_parse_quantity
function #1810)
-
- XML
-
libxml_get_external_entity_loader()
(Add documentation for libxml_get_external_entity_loader() #1933)
-
- ZIP
- cURL
- Modified functions
- Core
- str*cmp, substr_compare functions, using binary safe string comparison now return -1, 0 and 1. (update string comparisons possible returns. #1857)
- Locale-independent case conversion (Updates for RFC: Locale-independent case conversion #1934) (RFC: https://wiki.php.net/rfc/strtolower-ascii)
- DBA
-
dba_open()
/dba_popen()
(Update the signature of dba_open() and dba_popen() #1267) -
dba_fetch()
(dba_fetch() signature has changed to follow userland semantics #1939)
-
- Random
-
random_bytes()
(add docs forrandom_int
/random_bytes
changes in PHP 8.2 #1813) -
random_int()
(add docs forrandom_int
/random_bytes
changes in PHP 8.2 #1813)
-
- SPL (iterator_to_array() and iterator_count() now accepts arrays #1938)
-
iterator_to_array()
-
iterator_count()
-
- Standard
-
getimagesize()
([PHP 8.2] Updategetimagesize
description #1821)
-
- Core
- Deprecated
- SPL
-
SplFileInfo::_bad_state_ex()
(method was undocumented)
-
- Standard
-
utf8_encode()
([PHP 8.2] Deprecateutf8_*
functions #1743) -
utf8_decode()
([PHP 8.2] Deprecateutf8_*
functions #1743)
-
- SPL
Constants:
- New:
-
COM_DOTNET:
- DISP_E_PARAMNOTFOUND
- LOCALE_NEUTRAL
-
cURL:
- CURLALTSVC_H1 (libcurl >= 7.64.1)
- CURLALTSVC_H2 (libcurl >= 7.64.1)
- CURLALTSVC_H3 (libcurl >= 7.64.1)
- CURLALTSVC_READONLYFILE (libcurl >= 7.64.1)
- CURLAUTH_AWS_SIGV4 (libcurl >= 7.75.0) (Document new 8.2 curl constants #1911)
- CURLE_PROXY (libcurl >= 7.73.0)
- CURLFTPMETHOD_DEFAULT
- CURLHSTS_ENABLE (libcurl >= 7.74.0) (Document new 8.2 curl constants #1911)
- CURLHSTS_READONLYFILE (libcurl >= 7.74.0) (Document new 8.2 curl constants #1911)
- CURLINFO_PROXY_ERROR (libcurl >= 7.73.0) (Document new 8.2 curl constants #1911)
- CURLINFO_REFERER (libcurl >= 7.76.0) (Document new 8.2 curl constants #1911)
- CURLINFO_RETRY_AFTER (libcurl >= 7.66.0) (Document new 8.2 curl constants #1911)
- CURLMOPT_MAX_CONCURRENT_STREAMS (libcurl >= 7.67.0)
- CURLOPT_ALTSVC_CTRL (libcurl >= 7.64.1)
- CURLOPT_ALTSVC (libcurl >= 7.64.1)
- CURLOPT_AWS_SIGV4 (libcurl >= 7.75.0) (Document new 8.2 curl constants #1911)
- CURLOPT_CAINFO_BLOB (libcurl >= 7.77.0) (Document new 8.2 curl constants #1911)
- CURLOPT_DOH_SSL_VERIFYHOST (libcurl >= 7.76.0) (Document new 8.2 curl constants #1911)
- CURLOPT_DOH_SSL_VERIFYPEER (libcurl >= 7.76.0) (Document new 8.2 curl constants #1911)
- CURLOPT_DOH_SSL_VERIFYSTATUS (libcurl >= 7.76.0) (Document new 8.2 curl constants #1911)
- CURLOPT_HSTS_CTRL (libcurl >= 7.74.0) (Document new 8.2 curl constants #1911)
- CURLOPT_HSTS (libcurl >= 7.74.0) (Document new 8.2 curl constants #1911)
- CURLOPT_MAIL_RCPT_ALLLOWFAILS (libcurl >= 7.69.0) (Document new 8.2 curl constants #1911)
- CURLOPT_MAXAGE_CONN (libcurl >= 7.65.0) (Document new 8.2 curl constants #1911)
- CURLOPT_MAXFILESIZE_LARGE (Document new 8.2 curl constants #1911)
- CURLOPT_MAXLIFETIME_CONN (libcurl >= 7.80.0) (Document new 8.2 curl constants #1911)
- CURLOPT_PROXY_CAINFO_BLOB (libcurl >= 7.77.0) (Document new 8.2 curl constants #1911)
- CURLOPT_SASL_AUTHZID (libcurl >= 7.66.0) (Document new 8.2 curl constants #1911)
- CURLOPT_SSH_HOST_PUBLIC_KEY_SHA256 (libcurl >= 7.80.0) (Document new 8.2 curl constants #1911)
- CURLOPT_SSL_EC_CURVES (libcurl >= 7.73.0) (Document new 8.2 curl constants #1911)
- CURLOPT_UPKEEP_INTERVAL_MS (libcurl >= 7.62.0) (Document new 8.2 curl constants #1911)
- CURLOPT_UPLOAD_BUFFERSIZE (libcurl >= 7.62.0) (Document new 8.2 curl constants #1911)
- CURLOPT_XFERINFOFUNCTION (libcurl >= 7.32.0) (curlopt add new constant CURLOPT_XFERINFOFUNCTION #1540)
- CURLPROTO_MQTT (libcurl >= 7.71.0)
- CURLPX_BAD_ADDRESS_TYPE (libcurl >= 7.73.0)
- CURLPX_BAD_VERSION (libcurl >= 7.73.0)
- CURLPX_CLOSED (libcurl >= 7.73.0)
- CURLPX_GSSAPI (libcurl >= 7.73.0)
- CURLPX_GSSAPI_PERMSG (libcurl >= 7.73.0)
- CURLPX_GSSAPI_PROTECTION (libcurl >= 7.73.0)
- CURLPX_IDENTD_DIFFER (libcurl >= 7.73.0)
- CURLPX_IDENTD (libcurl >= 7.73.0)
- CURLPX_LONG_HOSTNAME (libcurl >= 7.73.0)
- CURLPX_LONG_PASSWD (libcurl >= 7.73.0)
- CURLPX_LONG_USER (libcurl >= 7.73.0)
- CURLPX_NO_AUTH (libcurl >= 7.73.0)
- CURLPX_OK (libcurl >= 7.73.0)
- CURLPX_RECV_ADDRESS (libcurl >= 7.73.0)
- CURLPX_RECV_AUTH (libcurl >= 7.73.0)
- CURLPX_RECV_CONNECT (libcurl >= 7.73.0)
- CURLPX_RECV_REQACK (libcurl >= 7.73.0)
- CURLPX_REPLY_ADDRESS_TYPE_NOT_SUPPORTED (libcurl >= 7.73.0)
- CURLPX_REPLY_COMMAND_NOT_SUPPORTED (libcurl >= 7.73.0)
- CURLPX_REPLY_CONNECTION_REFUSED (libcurl >= 7.73.0)
- CURLPX_REPLY_GENERAL_SERVER_FAILURE (libcurl >= 7.73.0)
- CURLPX_REPLY_HOST_UNREACHABLE (libcurl >= 7.73.0)
- CURLPX_REPLY_NETWORK_UNREACHABLE (libcurl >= 7.73.0)
- CURLPX_REPLY_NOT_ALLOWED (libcurl >= 7.73.0)
- CURLPX_REPLY_TTL_EXPIRED (libcurl >= 7.73.0)
- CURLPX_REPLY_UNASSIGNED (libcurl >= 7.73.0)
- CURLPX_REQUEST_FAILED (libcurl >= 7.73.0)
- CURLPX_RESOLVE_HOST (libcurl >= 7.73.0)
- CURLPX_SEND_AUTH (libcurl >= 7.73.0)
- CURLPX_SEND_CONNECT (libcurl >= 7.73.0)
- CURLPX_SEND_REQUEST (libcurl >= 7.73.0)
- CURLPX_UNKNOWN_FAIL (libcurl >= 7.73.0)
- CURLPX_UNKNOWN_MODE (libcurl >= 7.73.0)
- CURLPX_USER_REJECTED (libcurl >= 7.73.0)
- CURLSSLOPT_AUTO_CLIENT_CERT (libcurl >= 7.77.0)
- CURLSSLOPT_NATIVE_CA (libcurl >= 7.71.0)
- CURLSSLOPT_NO_PARTIALCHAIN (libcurl >= 7.68.0)
- CURLSSLOPT_REVOKE_BEST_EFFORT (libcurl >= 7.70.0)
- CURL_VERSION_GSASL (libcurl >= 7.76.0) (Document new 8.2 curl constants #1911)
- CURL_VERSION_HSTS (libcurl >= 7.74.0) (Document new 8.2 curl constants #1911)
- CURL_VERSION_HTTP3 (libcurl >= 7.66.0) (Document new 8.2 curl constants #1911)
- CURL_VERSION_UNICODE (libcurl >= 7.72.0) (Document new 8.2 curl constants #1911)
- CURL_VERSION_ZSTD (libcurl >= 7.72.0) (Document new 8.2 curl constants #1911)
-
DBA:
- DBA_LMDB_USE_SUB_DIR ([PHP 8.2] Add DBA flag constants #1818)
- DBA_LMDB_NO_SUB_DIR ([PHP 8.2] Add DBA flag constants #1818)
-
Filter:
- FILTER_FLAG_GLOBAL_RANGE (add
FILTER_FLAG_GLOBAL_RANGE
documentation #1811)
- FILTER_FLAG_GLOBAL_RANGE (add
-
Sockets:
- SO_INCOMING_CPU (socket extension update related to last entries. #1609)
- SO_MEMINFO (socket extension update related to last entries. #1609)
- SO_RTABLE (OpenBSD) (socket extension update related to last entries. #1609)
- TCP_KEEPALIVE (MacOS) (socket extension update related to last entries. #1609)
- TCP_KEEPCNT (Linux, others) (socket extension update related to last entries. #1609)
- TCP_KEEPIDLE (Linux, others) (socket extension update related to last entries. #1609)
- TCP_KEEPINTVL (Linux, others) (socket extension update related to last entries. #1609)
- TCP_NOTSENT_LOWAT (socket extension update related to last entries. #1609)
- LOCAL_CREDS_PERSISTENT (FreeBSD) (missing socket constants #1856)
- SCM_CREDS2 (FreeBSD) (socket extension update related to last entries. #1609)
- LOCAL_CREDS (NetBSD) (missing socket constants #1856)
- SO_BPF_EXTENSIONS (socket extension update related to last entries. #1609)
- SO_SETFIB (socket extension update related to last entries. #1609)
- TCP_CONGESTION (Linux, FreeBSD) (socket extension update related to last entries. #1609)
- SO_ZEROCOPY (Linux) (socket extension update related to last entries. #1609)
- MSG_ZEROCOPY (Linux) (socket extension update related to last entries. #1609)
-
Other changes (W.I.P)
- MBString text encoding (Add PHP 8.2 changelog entry to mb_convert_encoding() and mb_detect_encoding() #3108)
- iterable type (Rewrite type section #1726)
- The return value of DateTime::getLastErrors() (DateTime::getLastErrors() not returning false when no errors/warnings php-src#9431)
- PCRE
/n (NO_AUTO_CAPTURE)
new options ([PHP 8.2] Added PCRE n (NO_AUTO_CAPTURE) modifier description. #2598)