--- embedaddon/php/ext/xml/compat.c 2013/07/22 01:32:10 1.1.1.2 +++ embedaddon/php/ext/xml/compat.c 2013/10/14 08:02:42 1.1.1.3 @@ -619,109 +619,109 @@ XML_GetErrorCode(XML_Parser parser) } static const XML_Char *const error_mapping[] = { - "No error", - "No memory", - "Invalid document start", - "Empty document", - "Not well-formed (invalid token)", - "Invalid document end", - "Invalid hexadecimal character reference", - "Invalid decimal character reference", - "Invalid character reference", - "Invalid character", - "XML_ERR_CHARREF_AT_EOF", - "XML_ERR_CHARREF_IN_PROLOG", - "XML_ERR_CHARREF_IN_EPILOG", - "XML_ERR_CHARREF_IN_DTD", - "XML_ERR_ENTITYREF_AT_EOF", - "XML_ERR_ENTITYREF_IN_PROLOG", - "XML_ERR_ENTITYREF_IN_EPILOG", - "XML_ERR_ENTITYREF_IN_DTD", - "PEReference at end of document", - "PEReference in prolog", - "PEReference in epilog", - "PEReference: forbidden within markup decl in internal subset", - "XML_ERR_ENTITYREF_NO_NAME", - "EntityRef: expecting ';'", - "PEReference: no name", - "PEReference: expecting ';'", - "Undeclared entity error", - "Undeclared entity warning", - "Unparsed Entity", - "XML_ERR_ENTITY_IS_EXTERNAL", - "XML_ERR_ENTITY_IS_PARAMETER", - "Unknown encoding", - "Unsupported encoding", - "String not started expecting ' or \"", - "String not closed expecting \" or '", - "Namespace declaration error", - "EntityValue: \" or ' expected", - "EntityValue: \" or ' expected", - "< in attribute", - "Attribute not started", - "Attribute not finished", - "Attribute without value", - "Attribute redefined", - "SystemLiteral \" or ' expected", - "SystemLiteral \" or ' expected", - /* "XML_ERR_COMMENT_NOT_STARTED", <= eliminated on purpose */ - "Comment not finished", - "Processing Instruction not started", - "Processing Instruction not finished", - "NOTATION: Name expected here", - "'>' required to close NOTATION declaration", - "'(' required to start ATTLIST enumeration", - "'(' required to start ATTLIST enumeration", - "MixedContentDecl : '|' or ')*' expected", - "XML_ERR_MIXED_NOT_FINISHED", - "ELEMENT in DTD not started", - "ELEMENT in DTD not finished", - "XML declaration not started", - "XML declaration not finished", - "XML_ERR_CONDSEC_NOT_STARTED", - "XML conditional section not closed", - "Content error in the external subset", - "DOCTYPE not finished", - "Sequence ']]>' not allowed in content", - "CDATA not finished", - "Reserved XML Name", - "Space required", - "XML_ERR_SEPARATOR_REQUIRED", - "NmToken expected in ATTLIST enumeration", - "XML_ERR_NAME_REQUIRED", - "MixedContentDecl : '#PCDATA' expected", - "SYSTEM or PUBLIC, the URI is missing", - "PUBLIC, the Public Identifier is missing", - "< required", - "> required", - "' required to close NOTATION declaration", + (const XML_Char *)"'(' required to start ATTLIST enumeration", + (const XML_Char *)"'(' required to start ATTLIST enumeration", + (const XML_Char *)"MixedContentDecl : '|' or ')*' expected", + (const XML_Char *)"XML_ERR_MIXED_NOT_FINISHED", + (const XML_Char *)"ELEMENT in DTD not started", + (const XML_Char *)"ELEMENT in DTD not finished", + (const XML_Char *)"XML declaration not started", + (const XML_Char *)"XML declaration not finished", + (const XML_Char *)"XML_ERR_CONDSEC_NOT_STARTED", + (const XML_Char *)"XML conditional section not closed", + (const XML_Char *)"Content error in the external subset", + (const XML_Char *)"DOCTYPE not finished", + (const XML_Char *)"Sequence ']]>' not allowed in content", + (const XML_Char *)"CDATA not finished", + (const XML_Char *)"Reserved XML Name", + (const XML_Char *)"Space required", + (const XML_Char *)"XML_ERR_SEPARATOR_REQUIRED", + (const XML_Char *)"NmToken expected in ATTLIST enumeration", + (const XML_Char *)"XML_ERR_NAME_REQUIRED", + (const XML_Char *)"MixedContentDecl : '#PCDATA' expected", + (const XML_Char *)"SYSTEM or PUBLIC, the URI is missing", + (const XML_Char *)"PUBLIC, the Public Identifier is missing", + (const XML_Char *)"< required", + (const XML_Char *)"> required", + (const XML_Char *)"