[doc-en] master: openssl_random_pseudo_bytes(): document the ValueError for length < 1 (#5966)

From: Date: Mon, 19 Oct 2026 07:58:07 +0000
Subject: [doc-en] master: openssl_random_pseudo_bytes(): document the ValueError for length < 1 (#5966)
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-23852@lists.php.net to get a copy of this message
Author: qodelicious (qodelicious) Committer: GitHub (web-flow) Pusher: lacatoire Date: 2026-10-19T09:58:04+02:00 Commit: https://github.com/php/doc-en/commit/9666c3ea1febc91522ac52e02e692002413701f4 Raw diff: https://github.com/php/doc-en/commit/9666c3ea1febc91522ac52e02e692002413701f4.diff openssl_random_pseudo_bytes(): document the ValueError for length < 1 (#5966) Fixes #1523 Changed paths: M reference/openssl/functions/openssl-random-pseudo-bytes.xml Diff: diff --git a/reference/openssl/functions/openssl-random-pseudo-bytes.xml b/reference/openssl/functions/openssl-random-pseudo-bytes.xml index 923ece93b869..9b5c1969511e 100644 --- a/reference/openssl/functions/openssl-random-pseudo-bytes.xml +++ b/reference/openssl/functions/openssl-random-pseudo-bytes.xml @@ -64,6 +64,10 @@ <function>openssl_random_pseudo_bytes</function> throws an <classname>Exception</classname> on failure. </para> + <simpara> + Throws a <exceptionname>ValueError</exceptionname> if <parameter>length</parameter> + is less than <literal>1</literal>. + </simpara> </refsect1> <refsect1 role="changelog">

« previous php.doc.cvs (#23852) next »