Skip to content

Cleanup pubkey checks in ext/phar #11009

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

Merged
merged 1 commit into from
Apr 4, 2023
Merged

Conversation

nielsdos
Copy link
Member

@nielsdos nielsdos commented Apr 3, 2023

These checks are always true because we bail out early if pubkey is NULL or empty.
But by having these checks, it makes the code more confusing because it implies pubkey can be false, while it can in fact not.

These checks are always true because we bail out early if pubkey is
NULL or empty.
But by having these checks, it makes the code more confusing because it
implies pubkey can be false, while it can in fact not.
Copy link
Member

@TimWolla TimWolla left a comment

Choose a reason for hiding this comment

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

I verified that the changes are accurate, but did not check whether there are any other dead branches that could be removed.

@nielsdos
Copy link
Member Author

nielsdos commented Apr 4, 2023

Thx.

@nielsdos nielsdos merged commit 44b1619 into php:master Apr 4, 2023
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.

3 participants