Debugable Enums
ImplementedLets enums define __debugInfo() to control what var_dump() shows for an enum case.
Last activity
Follow the proposals shaping the next version of PHP.
Lets enums define __debugInfo() to control what var_dump() shows for an enum case.
Last activity
Exempts new TypeError and ValueError input checks, and reworded error messages, from PHP's backward compatibility break policy.
Last activity
Replaces the PHP License and Zend Engine License with the Modified BSD License, as PHP License 4 and Zend Engine License 3.
Last activity
Changes the session defaults to use_strict_mode=1, cookie_httponly=1 and cookie_samesite=Lax so new installs are safer out of the box.
Last activity
Changes the release manager policy to three per PHP version, two hands-on and one hands-off adviser, in line with current practice.
Last activity
Adds a global SortDirection enum with Ascending and Descending cases as a shared, type-safe way to express sort order.
Last activity
Lets you put a doc comment on each function parameter and read it with the new ReflectionParameter::getDocComment().
Last activity
Lets pack() and unpack() take < and > byte order markers on the f and d float codes, matching the integer syntax added in PHP 8.6.
Last activity
Makes closures cheaper by inferring static when $this is unused and caching stateless closures, though only the caching part was merged.
Last activity
Adds grapheme_strrev() to intl, which reverses a string by grapheme cluster so emoji and combined characters stay intact.
Last activity
Adds the form feed character (\f) to the default set of characters that trim(), ltrim() and rtrim() strip.
Last activity
Adds a TLS session class and stream context options so clients and servers can save, store and resume TLS sessions.
Last activity
Adds mysqli::quote_string(), which escapes a string and wraps it in single quotes, like PDO::quote(), to close a double-quote injection hole.
Last activity
Adds exception and silent modes for stream errors, with structured StreamError objects and a StreamErrorCode enum you can inspect.
Last activity
Adds Perl-style < and > byte order modifiers to pack() and unpack(), so signed integers can be little-endian or big-endian.
Last activity
Changes the PHP 8.5 deprecation of __sleep() and __wakeup() into a docs-only soft deprecation, so no warning is emitted.
Last activity
Changes the RFC policy to require two weeks of discussion, a heads-up email before votes, and no votes ending over the holidays.
Last activity
Adds a clamp() function that returns a value if it falls between min and max, or the nearest bound if it doesn't.
Last activity
Deprecates PECL as the recommended way to install PHP extensions and makes PIE the recommended installer instead.
Last activity
Adds a partitioned option to setcookie(), setrawcookie() and session cookies so PHP can send CHIPS Partitioned cookies without a manual header.
Last activity