[wp-trac] [WordPress Trac] #53465: PHP 8.1.: the default value of the flags parameter for htmlentities() et all needs to be explicitly set
WordPress Trac
noreply at wordpress.org
Tue Mar 18 14:45:50 UTC 2025
#53465: PHP 8.1.: the default value of the flags parameter for htmlentities() et
all needs to be explicitly set
-------------------------------------------------+-------------------------
Reporter: jrf | Owner: (none)
Type: task (blessed) | Status: assigned
Priority: normal | Milestone: Awaiting
| Review
Component: General | Version:
Severity: normal | Resolution:
Keywords: php81 has-patch has-unit-tests 2nd- | Focuses: php-
opinion changes-requested | compatibility
-------------------------------------------------+-------------------------
Changes (by SergeyBiryukov):
* milestone: 6.8 => Awaiting Review
Comment:
Replying to [comment:37 johnbillion]:
> To reiterate the point that Joe is making, PHP 8.1 was released over
three years ago and just shy of 50% of sites are now running PHP 8.1+. If
the proposed change was to be made now, it would actually revert nearly
50% of sites to the previous behaviour which, for the most part, means
single quotes that are encoded would no longer be encoded. I think this
risks a greater negative effect than keeping the default behaviour.
Thanks, similar thoughts here. Leaning towards the first approach, but
curious to see what others think. Keeping the ticket open for now.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53465#comment:38>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list