Bug #73328 [Ver->Dup]: Disabling entity loading breaks XMLReader

From: Date: Mon, 31 Aug 2020 16:00:43 +0000
Subject: Bug #73328 [Ver->Dup]: Disabling entity loading breaks XMLReader
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-228822@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=73328&edit=1

 ID:                 73328
 Updated by:         cmb@php.net
 Reported by:        d dot takken at xs4all dot nl
 Summary:            Disabling entity loading breaks XMLReader
-Status:             Verified
+Status:             Duplicate
 Type:               Bug
 Package:            XML Reader
 Operating System:   Linux
 PHP Version:        7.0.12
-Assigned To:        
+Assigned To:        cmb
 Block user comment: N
 Private report:     N

 New Comment:

Well, actually a duplicate of #62577.


Previous Comments:
------------------------------------------------------------------------
[2016-10-17 13:32:58] cmb@php.net

Related to bug #62577.

------------------------------------------------------------------------
[2016-10-17 10:33:42] d dot takken at xs4all dot nl

Description:
------------
When entity loading is disabled using libxml_disable_entity_loader(), XMLReader refuses to load XML
data using its open() method.


Test script:
---------------
<?php

libxml_disable_entity_loader();

$reader = new XMLReader();
$reader->open('php://stdin');


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

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



------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=73328&edit=1


Thread (3 messages)

« previous php.bugs (#228822) next »