Skip to content

var_dump doesn't actually work on XMLReader #15123

Closed

Description

@ndossche

Description

Discovered while working on virtual property improvements.
In fact, it appears to have never worked. In 8.0 it just outputted an empty object: https://3v4l.org/qsVMP#v8.0.0

The following code:

<?php
$reader = XMLReader::XML("<root>hi</root>");
while ($reader->read()) {
    var_dump($reader);
}

Resulted in this output:

a bunch of uninitialized properties

But I expected this output instead:

not that

PHP Version

8.0+

Operating System

No response

Activity

  1. added a commit that references this issue on Jul 28, 2024
    b1f5d9e
  2. added a commit that references this issue on Jul 28, 2024
    e0a2e2e
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