Skip to content

Fix reference access in dimensions for DOMNodeList and DOMNodeMap - #13511

Closed
ndossche wants to merge 2 commits into
php:PHP-8.2from
ndossche:dom-references-1
Closed

ndossche wants to merge 2 commits into
php:PHP-8.2from
ndossche:dom-references-1

Conversation

@ndossche

Copy link
Copy Markdown
Member

No description provided.

@Girgias Girgias left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Should their be a test for a ref to an int?

bool(true)
string(3) "bar"

Warning: Attempt to read property "value" on null in %s on line %d

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Isn't this warning kinda confusing?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yeah, it's because the lookup returns NULL, but at least for this test I can adapt the test so it's less confusing.

@ndossche

Copy link
Copy Markdown
Member Author

Should their be a test for a ref to an int?

Should be fine as it does the get_long call from the engine but I'll add a test anyway.

@ndossche ndossche closed this in b8a1041 Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants