Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Both XML parsers use libxml_get_errors() to determine if there were issues the underlying XML library had when processing XML into an object. However, the error buffer is not cleared before the processor loads XML into an object, so any existing errors in the buffer from other Drupal code that executed during the migration of data would create false positives.
This patch fixes it for the SimpleXml parser. I'm not using the more advanced parser anymore, but something similar could be applied there.
Comment | File | Size | Author |
---|---|---|---|
#2 | 2860788.patch | 891 bytes | bkosborne |
Comments
Comment #2
bkosborneComment #5
mikeryanNice simple obvious fix - applied to Xml.php as well, thanks!