-
Notifications
You must be signed in to change notification settings - Fork 7.9k
test to function openssl_get_md_methods(); #1600
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
a new test to show whats openssl md_methods are avaliables
The same as cipher algs test. It is incorrect as the list is dependent on installation... |
Hi @bukka ! thanks for your review, i've fixed my mistake; |
openssl_get_md_methods.phpt
Outdated
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.
please remove this
Couldn't this be more simpler?
Also, would using |
Hi @jerrygrey how are you? you are right, this way it's more simple, but i like show a message explain what was wrong if the test function fail. Thanks for your comment! :-) |
@marcosptf The test script will automatically provide an error message on failure, along with dffs, etc to make it easy to find out what went wrong, so those types of error messages are not really needed tbh. |
openssl_get_md_methods.phpt
Outdated
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.
tab instead of spaces pls
@bukka @jerrygrey |
@marcosptf Looks good, I don't see any issues with the code 👍 |
@bukka @jerrygrey |
The history looks very confusing. How about squashing the commits here and also on #1601? 😉 |
@bukka @jerrygrey |
@marcosptf I think there are actually some md algs that is not possible compile OpenSSL without (e.g. md5 - even no-md5 options is there - think it fails - I'll give a try) so I will add them later on top of your commit. |
Hi @bukka let me see if i understand. but, is correct write a test file to two functions? explain to me please Thanks for your patience! :-) |
@marcosptf No, keep the two tests in two different test files, @bukka just wants them both on one PR with one commit, it is just to keep everything nice and tidy on here. |
@marcosptf Exactly as @jerrygrey says . One PR with one commit containing two files. |
@bukka @jerrygrey :D |
Hi @bukka @jerrygrey, i'm waiting for your comments :-) |
Comment on behalf of bukka at php.net: Part of PR #1612 - closing |
a new test to show whats openssl md_methods are avaliables