Skip to content

Commit

Permalink
Mark parameter in ext/imap as sensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
TimWolla committed Jun 13, 2022
1 parent f9fa6d0 commit 176a484
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions ext/imap/php_imap.c
Expand Up @@ -34,6 +34,7 @@
#include "php.h"
#include "php_ini.h"
#include "php_streams.h"
#include "Zend/zend_attributes.h"
#include "Zend/zend_exceptions.h"
#include "ext/standard/php_string.h"
#include "ext/standard/info.h"
Expand Down
1 change: 1 addition & 0 deletions ext/imap/php_imap.stub.php
Expand Up @@ -405,6 +405,7 @@
*/
const IMAP_GC_TEXTS = UNKNOWN;

/** @sensitive-param $password */
function imap_open(string $mailbox, string $user, string $password, int $flags = 0, int $retries = 0, array $options = []): IMAP\Connection|false {}

function imap_reopen(IMAP\Connection $imap, string $mailbox, int $flags = 0, int $retries = 0): bool {}
Expand Down
4 changes: 3 additions & 1 deletion ext/imap/php_imap_arginfo.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 176a484

Please sign in to comment.