Skip to content

Conversation

nielsdos
Copy link
Member

@nielsdos nielsdos commented Jan 3, 2025

No description provided.

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.

Overall makes sense, minor nits

Comment on lines 1248 to 1255
if (uri && ZSTR_LEN(uri) > INT_MAX) {
zend_argument_value_error(1, "is too long");
RETURN_THROWS();
}
Copy link
Member

Choose a reason for hiding this comment

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

might make sense to define uri to the empty zend string instead of the ternary below?

if (objmap->free_local) {
xmlFree(objmap->local);
if (objmap->release_local) {
zend_string_release((zend_string *) (objmap->local - XtOffsetOf(zend_string, val)));
Copy link
Member

Choose a reason for hiding this comment

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

Maybe add a helper for this, don't remember for what other extension we did this.

Copy link
Member Author

@nielsdos nielsdos Jan 3, 2025

Choose a reason for hiding this comment

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

Yeah, I'll add the one from ldap

@nielsdos nielsdos force-pushed the dom-iteratorsimprove branch from 1ffd13d to 167da5a Compare January 3, 2025 16:13
@nielsdos nielsdos merged commit 49fa2e4 into php:master Jan 3, 2025
10 checks passed
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