php/doc-en

openssl_random_pseudo_bytes documentation update

Aperta

#1523 aperta il 16 apr 2022

 (1 commento) (0 reazioni) (0 assegnatari)XML (882 fork)auto 404
Extension: opensslbuggood first issue

Metriche repository

Star
 (596 stelle)
Metriche merge PR
 (Merge medio 99g 23h) (90 PR mergiate in 30 g)

Descrizione

From manual page: https://php.net/function.openssl-random-pseudo-bytes

Return Values Returns the generated string of bytes on success, or false on failure.


As of PHP 7.4, this is no longer true. Instead, an error is raised.

Return Values Returns the generated string of bytes on success, or throws an Error on failure (e.g. if the number of bytes requested is less than 1).

Guida contributor