PHP 8.1 RFC: is_literal

is_literal
PHP 8.1
In Voting Failing

RFC Vote: is_literal

Failing
-
> 50%
Yes: 10No: 23

is_literal

TypeNew Feature
Version PHP 8.1

Add the function is_literal(), a lightweight and effective way to identify if a string was written by a developer, removing the risk of a variable containing an Injection Vulnerability.

Subscribe to PHP.Watch newsletter for monthly updates

You will receive an email on last Wednesday of every month and on major PHP releases with new articles related to PHP, upcoming changes, new features and what's changing in the language. No marketing emails, no selling of your contacts, no click-tracking, and one-click instant unsubscribe from any email you receive.