Skip to content

Conversation

@acran
Copy link

@acran acran commented Aug 21, 2022

This is a shot at fixing #336.

Problem:

  • anonymous classes in PHP contain a null byte in their class names
  • xdebug encodes this null byte in its XML messages - producing actually invalid XML
  • xml2js / sax is unable to parse this XML
  • as a result the stack trace and context panels can not be updated

For more details see #336 (comment).

Solution: replace all null byte entities in the XML string before passing it to xml2js

fixes gwomacks#336

The generated class names of anonymous classes contain a null byte which
is encoded into XML by xdebug. But since null bytes are illegal entities
in XML this breaks parsing of those messages.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant