|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2016-07-06 13:10 UTC] cmb@php.net
-Status: Open
+Status: Feedback
-Assigned To:
+Assigned To: cmb
[2016-07-06 13:10 UTC] cmb@php.net
[2016-07-17 04:22 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 05:00:02 2025 UTC |
Description: ------------ ./menu7a.xml: 4576:1, ERROR:No error (error may be on previous line) don't have a small test script. this error is past end of file, which is line 4568. Test script: --------------- $contents = @file_get_contents($xmlFile);//for tag content replacement $xmlArray=array(); $tags=array(); global $AcctTypes,$TagTypes,$rootTag; //this is the list of $parser = xml_parser_create_ns('utf-8',':'); // WORKS JUST FINE $xmlSuccess=xml_parse_into_struct($parser, $contents, $xmlArray, $tags); if (XML_ERROR_NONE!=xml_get_error_code($parser) || $xmlSuccess) { echo "-------------------------XML ERROR-------------------------\r\n". "-------------------------XML ERROR-------------------------\r\n". "-------------------------XML ERROR-------------------------\r\n". $xmlFile.': '.xml_get_current_line_number($parser).':'. xml_get_current_column_number($parser).', ERROR:'. xml_error_string(xml_get_error_code($parser)). " (error may be on previous line)\r\n". "-------------------------XML ERROR-------------------------\r\n". "-------------------------XML ERROR-------------------------\r\n". "-------------------------XML ERROR-------------------------\r\n"; xml_parser_free($parser); exit(1); } xml_parser_free($parser); Expected result: ---------------- line number matching the problem. someone put random number generator in the parser/lexer? Actual result: -------------- ./menu7a.xml: 4576:1, ERROR:No error (error may be on previous line)