Skip to content

Commit ac76758

Browse files
committed
Mark parameter in ext/ftp as sensitive
1 parent 377c79c commit ac76758

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

ext/ftp/ftp.stub.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ function ftp_connect(string $hostname, int $port = 21, int $timeout = 90): FTP\C
7575
function ftp_ssl_connect(string $hostname, int $port = 21, int $timeout = 90): FTP\Connection|false {}
7676
#endif
7777

78+
/** @sensitive-param $password */
7879
function ftp_login(FTP\Connection $ftp, string $username, string $password): bool {}
7980
function ftp_pwd(FTP\Connection $ftp): string|false {}
8081
function ftp_cdup(FTP\Connection $ftp): bool {}

ext/ftp/ftp_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.

ext/ftp/php_ftp.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929

3030
#include "ext/standard/info.h"
3131
#include "ext/standard/file.h"
32+
#include "Zend/zend_attributes.h"
3233
#include "Zend/zend_exceptions.h"
3334

3435
#include "php_ftp.h"

0 commit comments

Comments
 (0)