Skip to content

ext/openssl: Use zend_result return type instead of int where applicable #17721

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
Feb 6, 2025

Conversation

Girgias
Copy link
Member

@Girgias Girgias commented Feb 6, 2025

Saw this from the recent commit.

Also the one call to php_openssl_load_rand_file and php_openssl_write_rand_file do not check for the return value. Not sure if this is a problem or not?

@bukka
Copy link
Member

bukka commented Feb 6, 2025

Also the one call to php_openssl_load_rand_file and php_openssl_write_rand_file do not check for the return value. Not sure if this is a problem or not?

They should be checked and return early.

@Girgias Girgias merged commit 78714d0 into php:master Feb 6, 2025
9 checks passed
@Girgias Girgias deleted the openssl-zend-result branch February 6, 2025 16:59
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