|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2016-02-16 16:08 UTC] ab@php.net
-Status: Open
+Status: Analyzed
[2016-02-16 16:08 UTC] ab@php.net
[2016-02-16 17:59 UTC] anrdaemon at freemail dot ru
[2016-02-16 20:53 UTC] ab@php.net
-Type: Bug
+Type: Documentation Problem
[2016-02-16 20:53 UTC] ab@php.net
[2016-02-16 22:16 UTC] anrdaemon at freemail dot ru
[2016-07-22 12:45 UTC] rasmus at mindplay dot dk
[2017-01-08 18:41 UTC] cmb@php.net
[2017-01-08 18:50 UTC] cmb@php.net
-Type: Documentation Problem
+Type: Bug
-Assigned To:
+Assigned To: cmb
[2017-01-08 18:50 UTC] cmb@php.net
[2017-06-21 08:34 UTC] cmb@php.net
-Assigned To: cmb
+Assigned To:
[2020-02-07 06:06 UTC] phpdocbot@php.net
[2020-02-07 06:06 UTC] phpdocbot@php.net
-Status: Analyzed
+Status: Closed
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 03:00:02 2025 UTC |
Description: ------------ When NS-aware parser is created, the handler set by xml_set_end_namespace_decl_handler() is never called. Test script: --------------- <?php $indent = ''; $parser = xml_parser_create_ns('UTF-8'); xml_set_end_namespace_decl_handler($parser, function($self, $name) { global $indent; $ns = $name ?: '(default)'; print $indent . "/NS:{$ns}\n"; }); // Expecting at least one mention of /NS: ... xml_parse($parser, '<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE shape PUBLIC "-//Dia//DTD Dia shape 1.0//EN" "http://www.daa.com.au/~james/dia-shape-ns"> <shape> <svg xmlns:svg="http://www.w3.org/2000/svg" svg:width="300px" svg:height="300px" svg:viewBox="0 0 3 3"> <svg:circle svg:style="fill: yellow;" cx="1.5" cy="1.5" r="0.5"/> </svg> </shape>', true); print xml_error_string(xml_get_error_code($parser)) . "\n"; ?> Expected result: ---------------- Expecting at least one mention of "/NS:...". Especially one, where parser leaving the enclosed SVG structure. Actual result: -------------- No error (No really, there's no error. But... Where's my handlers?)