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

From: Date: Mon, 17 Oct 2016 13:32:58 +0000
Subject: Bug #73328 [Opn->Ver]: Disabling entity loading breaks XMLReader
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-204863@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: Open +Status: Verified Type: Bug Package: XML Reader Operating System: Linux PHP Version: 7.0.12 Block user comment: N Private report: N New Comment: Related to bug #62577. Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#204863) next »