-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Update ext/snmp parameter names #6298
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from 1 commit
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -2,49 +2,70 @@ | |||||
|
||||||
/** @generate-function-entries */ | ||||||
|
||||||
function snmpget(string $host, string $community, array|string $object_id, int $timeout = -1, int $retries = -1): stdClass|array|string|bool {} | ||||||
function snmpget(string $hostname, string $community, array|string $object_id, int $timeout = -1, int $retries = -1): stdClass|array|string|bool {} | ||||||
|
||||||
function snmpgetnext(string $host, string $community, array|string $object_id, int $timeout = -1, int $retries = -1): stdClass|array|string|bool {} | ||||||
function snmpgetnext(string $hostname, string $community, array|string $object_id, int $timeout = -1, int $retries = -1): stdClass|array|string|bool {} | ||||||
|
||||||
function snmpwalk(string $host, string $community, array|string $object_id, int $timeout = -1, int $retries = -1): array|bool {} | ||||||
function snmpwalk(string $hostname, string $community, array|string $object_id, int $timeout = -1, int $retries = -1): array|bool {} | ||||||
|
||||||
function snmprealwalk(string $host, string $community, array|string $object_id, int $timeout = -1, int $retries = -1): array|bool {} | ||||||
function snmprealwalk(string $hostname, string $community, array|string $object_id, int $timeout = -1, int $retries = -1): array|bool {} | ||||||
|
||||||
/** @alias snmprealwalk */ | ||||||
function snmpwalkoid(string $host, string $community, array|string $object_id, int $timeout = -1, int $retries = -1): array|bool {} | ||||||
function snmpwalkoid(string $hostname, string $community, array|string $object_id, int $timeout = -1, int $retries = -1): array|bool {} | ||||||
|
||||||
function snmpset(string $host, string $community, array|string $object_id, array|string $type, array|string $value, int $timeout = -1, int $retries = -1): array|bool {} | ||||||
function snmpset(string $hostname, string $community, array|string $object_id, array|string $type, array|string $value, int $timeout = -1, int $retries = -1): array|bool {} | ||||||
|
||||||
function snmp_get_quick_print(): bool {} | ||||||
|
||||||
function snmp_set_quick_print(bool $quick_print): bool {} | ||||||
function snmp_set_quick_print(bool $enable): bool {} | ||||||
|
||||||
function snmp_set_enum_print(bool $enum_print): bool {} | ||||||
function snmp_set_enum_print(bool $enable): bool {} | ||||||
|
||||||
function snmp_set_oid_output_format(int $oid_format): bool {} | ||||||
|
||||||
/** @alias snmp_set_oid_output_format */ | ||||||
function snmp_set_oid_numeric_print(int $oid_format): bool {} | ||||||
|
||||||
function snmp2_get(string $host, string $community, array|string $object_id, int $timeout = -1, int $retries = -1): stdClass|array|string|bool {} | ||||||
function snmp2_get(string $hostname, string $community, array|string $object_id, int $timeout = -1, int $retries = -1): stdClass|array|string|bool {} | ||||||
|
||||||
function snmp2_getnext(string $host, string $community, array|string $object_id, int $timeout = -1, int $retries = -1): stdClass|array|string|bool {} | ||||||
function snmp2_getnext(string $hostname, string $community, array|string $object_id, int $timeout = -1, int $retries = -1): stdClass|array|string|bool {} | ||||||
|
||||||
function snmp2_walk(string $host, string $community, array|string $object_id, int $timeout = -1, int $retries = -1): array|bool {} | ||||||
function snmp2_walk(string $hostname, string $community, array|string $object_id, int $timeout = -1, int $retries = -1): array|bool {} | ||||||
|
||||||
function snmp2_real_walk(string $host, string $community, array|string $object_id, int $timeout = -1, int $retries = -1): array|bool {} | ||||||
function snmp2_real_walk(string $hostname, string $community, array|string $object_id, int $timeout = -1, int $retries = -1): array|bool {} | ||||||
|
||||||
function snmp2_set(string $host, string $community, array|string $object_id, array|string $type, array|string $value, int $timeout = -1, int $retries = -1): array|bool {} | ||||||
function snmp2_set(string $hostname, string $community, array|string $object_id, array|string $type, array|string $value, int $timeout = -1, int $retries = -1): array|bool {} | ||||||
|
||||||
function snmp3_get(string $host, string $sec_name, string $sec_level, string $auth_protocol, string $auth_passphrase, string $priv_protocol, string $priv_passphrase, array|string $object_id, int $timeout = -1, int $retries = -1): stdClass|array|string|bool {} | ||||||
function snmp3_get( | ||||||
string $hostname, string $sec_name, string $sec_level, | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Heh, I knew this was going to happen :) I got a bit stingy with characters because the signature is soooo long... |
||||||
string $auth_protocol, string $auth_passphrase, | ||||||
string $privacy_protocol, string $privacy_passphrase, | ||||||
array|string $object_id, int $timeout = -1, int $retries = -1): stdClass|array|string|bool {} | ||||||
|
||||||
function snmp3_getnext(string $host, string $sec_name, string $sec_level, string $auth_protocol, string $auth_passphrase, string $priv_protocol, string $priv_passphrase, array|string $object_id, int $timeout = -1, int $retries = -1): stdClass|array|string|bool {} | ||||||
function snmp3_getnext( | ||||||
string $hostname, string $sec_name, string $sec_level, | ||||||
string $auth_protocol, string $auth_passphrase, | ||||||
string $privacy_protocol, string $privacy_passphrase, | ||||||
array|string $object_id, int $timeout = -1, int $retries = -1): stdClass|array|string|bool {} | ||||||
|
||||||
function snmp3_walk(string $host, string $sec_name, string $sec_level, string $auth_protocol, string $auth_passphrase, string $priv_protocol, string $priv_passphrase, array|string $object_id, int $timeout = -1, int $retries = -1): array|bool {} | ||||||
function snmp3_walk( | ||||||
string $hostname, string $sec_name, string $sec_level, | ||||||
string $auth_protocol, string $auth_passphrase, | ||||||
string $privacy_protocol, string $privacy_passphrase, | ||||||
array|string $object_id, int $timeout = -1, int $retries = -1): array|bool {} | ||||||
|
||||||
function snmp3_real_walk(string $host, string $sec_name, string $sec_level, string $auth_protocol, string $auth_passphrase, string $priv_protocol, string $priv_passphrase, array|string $object_id, int $timeout = -1, int $retries = -1): array|bool {} | ||||||
function snmp3_real_walk( | ||||||
string $hostname, string $sec_name, string $sec_level, | ||||||
string $auth_protocol, string $auth_passphrase, | ||||||
string $privacy_protocol, string $privacy_passphrase, | ||||||
array|string $object_id, int $timeout = -1, int $retries = -1): array|bool {} | ||||||
|
||||||
function snmp3_set(string $host, string $sec_name, string $sec_level, string $auth_protocol, string $auth_passphrase, string $priv_protocol, string $priv_passphrase, array|string $object_id, array|string $type, array|string $value, int $timeout = -1, int $retries = -1): array|bool {} | ||||||
function snmp3_set( | ||||||
string $hostname, string $sec_name, string $sec_level, | ||||||
string $auth_protocol, string $auth_passphrase, | ||||||
string $privacy_protocol, string $privacy_passphrase, | ||||||
array|string $object_id, array|string $type, array|string $value, | ||||||
int $timeout = -1, int $retries = -1): array|bool {} | ||||||
|
||||||
function snmp_set_valueretrieval(int $method): bool {} | ||||||
|
||||||
|
@@ -54,25 +75,28 @@ function snmp_read_mib(string $filename): bool {} | |||||
|
||||||
class SNMP | ||||||
{ | ||||||
public function __construct(int $version, string $host, string $community, int $timeout = -1, int $retries = -1) {} | ||||||
public function __construct(int $version, string $hostname, string $community, int $timeout = -1, int $retries = -1) {} | ||||||
|
||||||
/** @return bool */ | ||||||
public function close() {} | ||||||
|
||||||
/** @return bool */ | ||||||
public function setSecurity(string $sec_level, string $auth_protocol = "", string $auth_passphrase = "", string $priv_protocol = "", string $priv_passphrase = "", string $contextName = "", string $contextEngineID = "") {} | ||||||
public function setSecurity( | ||||||
string $secLevel, string $authProtocol = "", string $authPassphrase = "", | ||||||
string $privacyProtocol = "", string $privacyPassphrase = "", | ||||||
string $contextName = "", string $contextEngineId = "") {} | ||||||
|
||||||
/** @return array|bool */ | ||||||
public function get(array|string $object_id, bool $use_orignames = false) {} | ||||||
public function get(array|string $objectId, bool $preserveKeys = false) {} | ||||||
|
||||||
/** @return array|bool */ | ||||||
public function getnext(array|string $object_id) {} | ||||||
public function getnext(array|string $objectId) {} | ||||||
|
||||||
/** @return array|bool */ | ||||||
public function walk(array|string $object_id, bool $suffix_keys = false, int $max_repetitions = -1, int $non_repeaters = -1) {} | ||||||
public function walk(array|string $objectId, bool $suffixAsKey = false, int $maxRepetitions = -1, int $nonRepeaters = -1) {} | ||||||
|
||||||
/** @return array|bool */ | ||||||
public function set(array|string $object_id, array|string $type, array|string $value) {} | ||||||
public function set(array|string $objectId, array|string $type, array|string $value) {} | ||||||
|
||||||
/** @return int */ | ||||||
public function getErrno() {} | ||||||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.