Skip to content

Commit 0b61bd6

Browse files
committed
Mark parameter in ext/imap as sensitive
1 parent ac76758 commit 0b61bd6

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

ext/imap/php_imap.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
#include "php.h"
3535
#include "php_ini.h"
3636
#include "php_streams.h"
37+
#include "Zend/zend_attributes.h"
3738
#include "Zend/zend_exceptions.h"
3839
#include "ext/standard/php_string.h"
3940
#include "ext/standard/info.h"

ext/imap/php_imap.stub.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,7 @@
405405
*/
406406
const IMAP_GC_TEXTS = UNKNOWN;
407407

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

410411
function imap_reopen(IMAP\Connection $imap, string $mailbox, int $flags = 0, int $retries = 0): bool {}

ext/imap/php_imap_arginfo.h

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)