On 10-10-2026 0:21, Juliette Reinders Folmer wrote:
On 5-10-2026 23:22, Juliette Reinders Folmer wrote:
On 25-9-2026 13:32, Juliette Reinders Folmer wrote:
The `b` string prefix and the `(binary)` cast were both introduced in PHP 5.2.1 for forward compatibility with PHP 6.

In 2016, there was an RFC [1] targeting PHP 7.x to deprecate both, which was declined.

Since then, the `(binary)` type cast has now been deprecated in PHP 8.5.0 [2], but as far as I can see, the `b`-prefix for strings is still supported.


I will write up the proposal properly and do an impact analysis and will add this to the PHP 8.7 bulk deprecations RFC in the near future.

FYI: The RFC text has now been added to the PHP 8.7 bulk deprecations RFC: https://wiki.php.net/rfc/deprecations_php_8_7#deprecate_the_b_prefix_for_binary_strings

Reply via email to