[Docs] Improve openssl_x509_verify()
to indicate that the return value is dangerous
#4574
Labels
openssl_x509_verify()
to indicate that the return value is dangerous
#4574
Affected page
https://www.php.net/manual/en/function.openssl-x509-verify.php
Current issue
This means that both the success case and the error cases are truthy, which makes code like:
dangerous.
Suggested improvement
A warning should be added to always compare
=== 1
. The code example should be updated to=== 1
instead of== 1
as well.Additional context
Same applies to
openssl_verify()
and possibly others.The text was updated successfully, but these errors were encountered: