Req #51939 [Com]: Add xml_set_entity_decl_handler function

From: Date: Mon, 15 Feb 2016 03:18:56 +0000
Subject: Req #51939 [Com]: Add xml_set_entity_decl_handler function
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-199216@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=51939&edit=1 ID: 51939 Comment by: anrdaemon at freemail dot ru Reported by: mchenryc at gmail dot com Summary: Add xml_set_entity_decl_handler function Status: Assigned Type: Feature/Change Request Package: XML related PHP Version: trunk-SVN-2010-05-28 (SVN) Assigned To: davidc Block user comment: N Private report: N New Comment: David, instead of adding "xml_set_entity_decl_handler" as a new function, how about making it an alias to xml_set_unparsed_entity_decl_handler (or, more precisely, the other way around), and call xml_set_entity_decl_handler() with $system_id set to entity value for internal entities? Previous Comments: ------------------------------------------------------------------------ [2016-02-15 00:45:38] anrdaemon at freemail dot ru Just fell for this trap by myself. Internal entity declarations are not handled, and fall into default handler or produce errors altogether, depends on your parser setup. ------------------------------------------------------------------------ [2011-07-21 09:03:46] davidc@php.net The following patch has been added/updated: Patch Name: Bug51939.patch Revision: 1311253426 URL: https://bugs.php.net/patch-display.php?bug=51939&patch=Bug51939.patch&revision=1311253426 ------------------------------------------------------------------------ [2011-07-21 08:43:50] davidc@php.net The following patch has been added/updated: Patch Name: bug51939-3-ws.patch Revision: 1311252230 URL: https://bugs.php.net/patch-display.php?bug=51939&patch=bug51939-3-ws.patch&revision=1311252230 ------------------------------------------------------------------------ [2011-07-21 08:39:38] davidc@php.net The following patch has been added/updated: Patch Name: bug51392-ws Revision: 1311251978 URL: https://bugs.php.net/patch-display.php?bug=51939&patch=bug51392-ws&revision=1311251978 ------------------------------------------------------------------------ [2011-07-19 12:22:21] davidc@php.net I've added a patch for this but I'd like to write a few more tests before committing it. If you could apply it and let me know if this helps you that'd be nice. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=51939 -- Edit this bug report at https://bugs.php.net/bug.php?id=51939&edit=1

« previous php.bugs (#199216) next »