|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2016-06-23 02:59 UTC] requinix@php.net
-Status: Open
+Status: Feedback
[2016-06-23 02:59 UTC] requinix@php.net
[2016-06-29 02:29 UTC] jim dot michaels at Jesusnjim dot com
-Status: Feedback
+Status: Open
[2016-06-29 02:29 UTC] jim dot michaels at Jesusnjim dot com
[2016-06-29 02:33 UTC] jim dot michaels at jesusnjim dot com
[2016-06-29 09:32 UTC] requinix@php.net
-Status: Open
+Status: Not a bug
[2016-06-29 09:32 UTC] requinix@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 04:00:01 2025 UTC |
Description: ------------ $contents = @file_get_contents($xmlFile);//for tag content replacement $parser = xml_parser_create_ns('utf-8',':'); // WORKS JUST FINE $xmlArray=array(); $tags=array(); global $AcctTypes,$TagTypes,$rootTag; //this is the list of $xmlSuccess=xml_parse_into_struct($parser, $contents, $xmlArray, $tags); if (0==$StartXmlArrayIndex) { $StartXmlArrayIndex++; } $elem=$xmlArray[$StartXmlArrayIndex]; ... Parse error: syntax error, unexpected 'tag' (T_STRING), expecting ',' or ')' in C:\w\Jesusnjim\menu7a.php on line 472 Test script: --------------- $contents = @file_get_contents($xmlFile);//for tag content replacement $parser = xml_parser_create_ns('utf-8',':'); // WORKS JUST FINE $xmlArray=array(); $tags=array(); global $AcctTypes,$TagTypes,$rootTag; //this is the list of $xmlSuccess=xml_parse_into_struct($parser, $contents, $xmlArray, $tags); if (0==$StartXmlArrayIndex) { $StartXmlArrayIndex++; } $elem=$xmlArray[$StartXmlArrayIndex]; if (!in_array($elem['tag'],$TagTypes)) { Expected result: ---------------- running code - sorry, complete example not possible due to 20 lines or less. Actual result: -------------- Parse error: syntax error, unexpected 'tag' (T_STRING), expecting ',' or ')' in C:\w\Jesusnjim\menu7a.php on line 472