Skip to content

Commit d31912c

Browse files
Justintime50LolGleb
authored andcommitted
fix: hash module return statement from raw_output to binary
1 parent 89adaed commit d31912c

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

hash/hash.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
* <b>FALSE</b> outputs lowercase hexits.
2222
* </p>
2323
* @return string a string containing the calculated message digest as lowercase hexits
24-
* unless <i>raw_output</i> is set to true in which case the raw
24+
* unless <i>binary</i> is set to true in which case the raw
2525
* binary representation of the message digest is returned.
2626
*/
2727
#[Pure]
@@ -53,7 +53,7 @@ function hash_equals(string $known_string, string $user_string): bool {}
5353
* <b>FALSE</b> outputs lowercase hexits.
5454
* </p>
5555
* @return string|false a string containing the calculated message digest as lowercase hexits
56-
* unless <i>raw_output</i> is set to true in which case the raw
56+
* unless <i>binary</i> is set to true in which case the raw
5757
* binary representation of the message digest is returned.
5858
*/
5959
#[Pure]
@@ -78,7 +78,7 @@ function hash_file(string $algo, string $filename, bool $binary = false, #[PhpSt
7878
* <b>FALSE</b> outputs lowercase hexits.
7979
* </p>
8080
* @return string a string containing the calculated message digest as lowercase hexits
81-
* unless <i>raw_output</i> is set to true in which case the raw
81+
* unless <i>binary</i> is set to true in which case the raw
8282
* binary representation of the message digest is returned.
8383
*/
8484
#[Pure]
@@ -103,7 +103,7 @@ function hash_hmac(string $algo, string $data, string $key, bool $binary = false
103103
* <b>FALSE</b> outputs lowercase hexits.
104104
* </p>
105105
* @return string|false a string containing the calculated message digest as lowercase hexits
106-
* unless <i>raw_output</i> is set to true in which case the raw
106+
* unless <i>binary</i> is set to true in which case the raw
107107
* binary representation of the message digest is returned.
108108
*/
109109
#[Pure]
@@ -196,7 +196,7 @@ function hash_update_file(#[LanguageLevelTypeAware(["7.2" => "HashContext"], def
196196
* <b>FALSE</b> outputs lowercase hexits.
197197
* </p>
198198
* @return string a string containing the calculated message digest as lowercase hexits
199-
* unless <i>raw_output</i> is set to true in which case the raw
199+
* unless <i>binary</i> is set to true in which case the raw
200200
* binary representation of the message digest is returned.
201201
*/
202202
function hash_final(#[LanguageLevelTypeAware(["7.2" => "HashContext"], default: "resource")] $context, bool $binary = false): string {}
@@ -273,8 +273,8 @@ function hash_hmac_algos(): array {}
273273
* The number of internal iterations to perform for the derivation.
274274
* </p>
275275
* @param int $length [optional] <p>
276-
* The length of the output string. If raw_output is TRUE this corresponds to the byte-length of the derived key,
277-
* if raw_output is FALSE this corresponds to twice the byte-length of the derived key (as every byte of the key is returned as two hexits). <br/>
276+
* The length of the output string. If binary is TRUE this corresponds to the byte-length of the derived key,
277+
* if binary is FALSE this corresponds to twice the byte-length of the derived key (as every byte of the key is returned as two hexits). <br/>
278278
* If 0 is passed, the entire output of the supplied algorithm is used.
279279
* </p>
280280
* @param bool $binary [optional] <p>
@@ -284,7 +284,7 @@ function hash_hmac_algos(): array {}
284284
* Additional options. This parameter was added for PHP 8.1 only.
285285
* </p>
286286
* @return string a string containing the derived key as lowercase hexits unless
287-
* <i>raw_output</i> is set to <b>TRUE</b> in which case the raw
287+
* <i>binary</i> is set to <b>TRUE</b> in which case the raw
288288
* binary representation of the derived key is returned.
289289
* @since 5.5
290290
*/

0 commit comments

Comments
 (0)