|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #73328 Disabling entity loading breaks XMLReader
Submitted: 2016-10-17 10:33 UTC Modified: 2020-08-31 16:00 UTC
Avg. Score:4.5 ± 0.7
Reproduced:8 of 8 (100.0%)
Same Version:3 (37.5%)
Same OS:5 (62.5%)
From: d dot takken at xs4all dot nl Assigned: cmb (profile)
Status: Duplicate Package: XML Reader
PHP Version: 7.0.12 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: d dot takken at xs4all dot nl
New email:
PHP Version: OS:


 [2016-10-17 10:33 UTC] d dot takken at xs4all dot nl
When entity loading is disabled using libxml_disable_entity_loader(), XMLReader refuses to load XML data using its open() method.

Test script:


$reader = new XMLReader();

Expected result:
The URL provided to open() is successfully opened.

Actual result:
A warning is generated and the URL is not opened.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2016-10-17 13:32 UTC]
-Status: Open +Status: Verified
 [2016-10-17 13:32 UTC]
Related to bug #62577.
 [2020-08-31 16:00 UTC]
-Status: Verified +Status: Duplicate -Assigned To: +Assigned To: cmb
 [2020-08-31 16:00 UTC]
Well, actually a duplicate of #62577.
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Tue Nov 29 18:05:52 2022 UTC