[wp-trac] [WordPress Trac] #50898: PHP 8.0: only call libxml_disable_entity_loader() in PHP < 8

WordPress Trac noreply at wordpress.org
Wed Aug 12 15:24:02 UTC 2020


#50898: PHP 8.0: only call libxml_disable_entity_loader() in PHP < 8
----------------------------+-------------------------------
 Reporter:  jrf             |       Owner:  SergeyBiryukov
     Type:  defect (bug)    |      Status:  closed
 Priority:  normal          |   Milestone:  5.6
Component:  Embeds          |     Version:
 Severity:  minor           |  Resolution:  fixed
 Keywords:  has-patch php8  |     Focuses:  coding-standards
----------------------------+-------------------------------
Changes (by SergeyBiryukov):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"48789" 48789]:
 {{{
 #!CommitTicketReference repository="" revision="48789"
 Code Modernization: Only call `libxml_disable_entity_loader()` in PHP < 8.

 This function has been deprecated in PHP 8.0 because in libxml 2.9.0,
 external entity loading is disabled by default, so this function is no
 longer needed to protect against XXE attacks.

 Props jrf.
 Fixes #50898.
 }}}

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


More information about the wp-trac mailing list