Skip to content

DOMDocument::loadXML throws ValueError for empty string since PHP 8 #2245

Description

@TimWolla

… and this is not yet documented, neither as a fact in the errors section, nor as a changelog entry.

see:

<para>
If an empty string is passed as the <parameter>source</parameter>,
a warning will be generated. This warning is not generated by libxml
and cannot be handled using libxml's error handling functions.
</para>

and

https://3v4l.org/qEWjm

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions