Skip to content

Commit c77bbf6

Browse files
committedAug 30, 2022
Mark crypt()'s $string parameter as #[\SensitiveParameter]
1 parent 9f303cf commit c77bbf6

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed
 

‎NEWS

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ PHP NEWS
22
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
33
?? ??? ????, PHP 8.2.0RC2
44

5+
- Standard:
6+
. Marked crypt()'s $string parameter as #[\SensitiveParameter]. (timwolla)
57

68
01 Sep 2022, PHP 8.2.0RC1
79

‎ext/standard/basic_functions.stub.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -911,7 +911,7 @@ function crc32(string $string): int {}
911911
/* crypt.c */
912912

913913
/** @refcount 1 */
914-
function crypt(string $string, string $salt): string {}
914+
function crypt(#[\SensitiveParameter] string $string, string $salt): string {}
915915

916916
/* datetime.c */
917917

‎ext/standard/basic_functions_arginfo.h

+3-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)