PHP 8.5

New Global Constants

cURL

  • CURLINFO_USED_PROXY
  • CURLINFO_HTTPAUTH_USED
  • CURLINFO_PROXYAUTH_USED
  • CURLINFO_CONN_ID
  • CURLINFO_QUEUE_TIME_T
  • CURLOPT_INFILESIZE_LARGE
  • CURLFOLLOW_ALL
  • CURLFOLLOW_OBEYCODE
  • CURLFOLLOW_FIRSTONLY

Filter

  • FILTER_THROW_ON_FAILURE

Intl

  • DECIMAL_COMPACT_SHORT
  • DECIMAL_COMPACT_LONG

OpenSSL

  • OPENSSL_PKCS1_PSS_PADDING
  • PKCS7_NOSMIMECAP
  • PKCS7_CRLFEOL
  • PKCS7_NOCRL
  • PKCS7_NO_DUAL_CONTENT

POSIX

  • POSIX_SC_OPEN_MAX

Sockets

  • IPPROTO_ICMP
  • IPPROTO_ICMPV6
  • TCP_FUNCTION_BLK (FreeBSD only)
  • TCP_FUNCTION_ALIAS (FreeBSD only)
  • TCP_REUSPORT_LB_NUMA (FreeBSD only)
  • TCP_REUSPORT_LB_NUMA_NODOM (FreeBSD only)
  • TCP_REUSPORT_LB_NUMA_CURDOM (FreeBSD only)
  • TCP_BBR_ALGORITHM (FreeBSD only)
  • AF_PACKET (Linux only)
  • IP_BINDANY (FreeBSD/NetBSD/OpenBSD only)
  • SO_BUSY_POLL (Linux only)
  • UDP_SEGMENT (Linux only)
  • SHUT_RD
  • SHUT_WR
  • SHUT_RDWR

Tokenizer

  • T_VOID_CAST
  • T_PIPE

Standard

  • IMAGETYPE_SVG when libxml is loaded.

PHP 8.4

New Global Constants

Intl

  • PATTERN (IntlDateFormatter)
  • PROPERTY_IDS_UNARY_OPERATOR (IntlChar)
  • PROPERTY_ID_COMPAT_MATH_START
  • PROPERTY_ID_COMPAT_MATH_CONTINUE

LDAP

  • LDAP_OPT_X_TLS_PROTOCOL_MAX
  • LDAP_OPT_X_TLS_PROTOCOL_TLS1_3

libxml

  • LIBXML_RECOVER
  • LIBXML_NO_XXE. This is used together with LIBXML_NOENT when entity substitution should be performed, while disallowing external entity loading. This constant is available as of libxml2 2.13.

OpenSSL

  • X509_PURPOSE_OCSP_HELPER
  • X509_PURPOSE_TIMESTAMP_SIGN

PCNTL

Sockets

The following socket options are now defined if they are supported:

XML

PHP 8.3

New Global Constants

cURL

Intl

PCNTL

PDO_ODBC

Sockets

The following socket options are now defined if they are supported:

PHP 8.2

New Global Constants

cURL

Sockets

The following socket options are now defined if they are supported:

PHP 8.1

PHP 7.4

PHP 7.3

New Global Constants

Client URL Library

JavaScript Object Notation

PHP 7.2

New global constants

Sodium

PHP 7.1

PHP 7.0

PHP 5.6