[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 10 15:40:23 UTC 2026


#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
-------------------------------------------------+-------------------------

Comment (by rodrigosprimo):

 Per @desrosj's suggestion in
 https://core.trac.wordpress.org/ticket/64634#comment:2, noting that #64634
 (updating PHPCompatibilityWP to 3.0.0-alpha2) is blocked by this ticket.
 The new PHPCompatibility version surfaces new
 `NewHTMLEntitiesFlagsDefault.NotSet` violations. Rather than excluding the
 sniff, the plan is to wait for a decision here on how to handle the
 default flags change before proceeding with the update.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/53465#comment:40>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list