Skip to content
PHP News
Search

The future of PHP

RFC Tracker

Follow the proposals shaping the next version of PHP.

35
Under discussion
00
In voting
30
Accepted this year
09
Declined this year

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

enum SortDirection

Implemented

Adds a global SortDirection enum with Ascending and Descending cases as a shared, type-safe way to express sort order.

PHP 8.6

Last activity

Lets you put a doc comment on each function parameter and read it with the new ReflectionParameter::getDocComment().

PHP 8.6

Last activity

Closure optimizations

Implemented

Makes closures cheaper by inferring static when $this is unused and caching stateless closures, though only the caching part was merged.

PHP 8.6

Last activity

Adds the form feed character (\f) to the default set of characters that trim(), ltrim() and rtrim() strip.

PHP 8.6

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.

PHP 8.6

Last activity

Adds exception and silent modes for stream errors, with structured StreamError objects and a StreamErrorCode enum you can inspect.

PHP 8.6

Last activity

Changes the PHP 8.5 deprecation of __sleep() and __wakeup() into a docs-only soft deprecation, so no warning is emitted.

PHP 8.5

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.

PHP 8.6

Last activity

Deprecates PECL as the recommended way to install PHP extensions and makes PIE the recommended installer instead.

Last activity

Warnings for PHP 8.5

Implemented

Adds PHP 8.5 warnings for coercing NAN, casting out of range floats to int, destructuring non-arrays and some isset()/empty() offset checks.

PHP 8.5

Last activity

Deprecates dozens of old PHP features in 8.5, from backticks and (integer) casts to __sleep(), null array keys and curl_close(), for removal in PHP 9.

PHP 8.5

Last activity

Lets you put #[\Deprecated] on a trait so PHP emits a deprecation warning whenever a class uses it.

PHP 8.5

Last activity