Skip to content

Conversation

@Girgias
Copy link
Member

@Girgias Girgias commented May 13, 2021

As it makes it clearer

@Girgias Girgias force-pushed the more-string_equals_usage branch from 5ae9b34 to 5044d71 Compare May 13, 2021 14:20
@Girgias Girgias force-pushed the more-string_equals_usage branch from 5044d71 to 1ebf2b5 Compare May 13, 2021 14:45
xmlNsPtr ns = NULL, curns;
char *strURI;
char *prefix;
char *prefix_char;
Copy link
Member

Choose a reason for hiding this comment

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

This makes it sound like prefix is a single character...

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah now that you mention it, any idea of a better name? Or should I rename this to prefix, and the zend_string to prefix_str?

Copy link
Member

Choose a reason for hiding this comment

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

Sounds reasonable

domain_name = domain;
} else {
domain_name = NULL;
if (domain != NULL && (ZSTR_LEN(domain) != 0) && !zend_string_equals_literal(domain, "0")) {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
if (domain != NULL && (ZSTR_LEN(domain) != 0) && !zend_string_equals_literal(domain, "0")) {
if (domain != NULL && ZSTR_LEN(domain) != 0 && !zend_string_equals_literal(domain, "0")) {

@Girgias Girgias closed this in e7135cb May 14, 2021
@Girgias Girgias deleted the more-string_equals_usage branch September 3, 2021 20:54
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.

2 participants