-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
XML parser error in PHP7 #69
Comments
May that "other input" be BOM mark? For UTF-8 it's unnessary but happens. And can give strange results given you can't see it in viewer but parser shure finds them... |
I haven't examined it deeply enough to count that out completely. But I don't think any bytes could hide in front of the I suppose it'd have to be in a separate call to |
I traced a mysterious hang-up during authentication to the following problem:
<proceed xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
, the client resets the parser.<?xml version='1.0'?><stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='...' from='...' version='1.0' xml:lang='en'>
xml_get_current_byte_index
returns 0), the parser will reportReserved XML Name
. That error is usually a result of<?xml version='1.0'?>
being preceded by any other input. That implies that something is "polluting" the parser in between being reset and receiving that string.Unfortunately I didn't find out what happens, but I was able to use the following hacky workaround to make sure that a
<?
string automatically resets the parser again:The text was updated successfully, but these errors were encountered: