Skip to content

[Sync-En] openssl, ldap, zip: warn against truthy checks on the return value - #3469

Merged
lacatoire merged 1 commit into
masterfrom
sync-en/3456-strict-comparisons
Sep 1, 2026
Merged

[Sync-En] openssl, ldap, zip: warn against truthy checks on the return value#3469
lacatoire merged 1 commit into
masterfrom
sync-en/3456-strict-comparisons

Conversation

@lacatoire

Copy link
Copy Markdown
Member

Translation of php/doc-en#4827 (commit 9e5f75b): a warning states that the success and error values are both truthy, so a plain truthy check treats an error as a successful verification and the result must be compared strictly. The openssl_verify() and openssl_x509_verify() examples now use ===. EN-Revision updated.

Fixes: #3456

…n value

Translation of php/doc-en#4827 (commit 9e5f75b): the success and error values are
both truthy, so the result must be compared strictly, and the openssl_verify() and
openssl_x509_verify() examples now use ===. EN-Revision updated.
@lacatoire
lacatoire merged commit f9a8590 into master Sep 1, 2026
5 checks passed
@lacatoire
lacatoire deleted the sync-en/3456-strict-comparisons branch September 1, 2026 20:43
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.

[Sync EN] fix: use strict comparsions of returns in openssl_verify examples (#4827)

1 participant