-
Notifications
You must be signed in to change notification settings - Fork 7.9k
ext/standard/info.c: Various refactoring #15366
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
3cc121c
to
55050a1
Compare
@cmb69 could you maybe double-check the Windows changes? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've left a couple of remarks. The changes to info.c look generally good to me.
It's amazing to see 350 LOC just to get the name of the Windows version. We could drop a few, since we're no longer supporting Vista and 7 and the respective server versions, but that shouldn't be done in this refactoring PR.
55050a1
to
b0bf00b
Compare
I merged some changes, split the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, this is fine! Maybe address the nit below, or feel free to merge without.
@@ -602,9 +602,10 @@ static char* php_get_windows_name() | |||
} | |||
} | |||
} else { | |||
return NULL; | |||
ZEND_UNREACHABLE(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I think this is fine given that this PR targets master
.
f0d057f
to
d980e8a
Compare
No description provided.