Skip to content

Conversation

nielsdos
Copy link
Member

At one point this was changed from a bool to an int in libxml2, with negative values meaning it is unspecified. Because it is cast to a bool this therefore returned true instead of the expected false.

@nielsdos nielsdos linked an issue Jul 25, 2023 that may be closed by this pull request
At one point this was changed from a bool to an int in libxml2, with
negative values meaning it is unspecified. Because it is cast to a bool
this therefore returned true instead of the expected false.
Copy link
Member

@Girgias Girgias left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

[standalone] => 1
[xmlStandalone] => 1
[standalone] =>
[xmlStandalone] =>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So, I'm going to be annoying, but could you maybe change the print_r() to a var_dump() so there are not the trailing white spaces. As this will cause issues with IDEs...

@nielsdos nielsdos closed this in bf4e7bd Jul 26, 2023
jorgsowa pushed a commit to jorgsowa/php-src that referenced this pull request Aug 16, 2023
At one point this was changed from a bool to an int in libxml2, with
negative values meaning it is unspecified. Because it is cast to a bool
this therefore returned true instead of the expected false.

Closes phpGH-11793.
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.

Wrong default value of DOMDocument.xmlStandalone

2 participants