mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Declare type for ext/snmp internal class constants
This commit is contained in:
@@ -184,78 +184,66 @@ function snmp_read_mib(string $filename): bool {}
|
||||
class SNMP
|
||||
{
|
||||
/**
|
||||
* @var int
|
||||
* @cvalue SNMP_VERSION_1
|
||||
* @link snmp.class.constants.version-1
|
||||
*/
|
||||
public const VERSION_1 = UNKNOWN;
|
||||
public const int VERSION_1 = UNKNOWN;
|
||||
/**
|
||||
* @var int
|
||||
* @cvalue SNMP_VERSION_2c
|
||||
* @link snmp.class.constants.version-2c
|
||||
*/
|
||||
public const VERSION_2c = UNKNOWN;
|
||||
public const int VERSION_2c = UNKNOWN;
|
||||
/**
|
||||
* @var int
|
||||
* @cvalue SNMP_VERSION_2c
|
||||
* @link snmp.class.constants.version-2c
|
||||
*/
|
||||
public const VERSION_2C = UNKNOWN;
|
||||
public const int VERSION_2C = UNKNOWN;
|
||||
/**
|
||||
* @var int
|
||||
* @cvalue SNMP_VERSION_3
|
||||
* @link snmp.class.constants.version-3
|
||||
*/
|
||||
public const VERSION_3 = UNKNOWN;
|
||||
public const int VERSION_3 = UNKNOWN;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
* @cvalue PHP_SNMP_ERRNO_NOERROR
|
||||
* @link snmp.class.constants.errno-noerror
|
||||
*/
|
||||
public const ERRNO_NOERROR = UNKNOWN;
|
||||
public const int ERRNO_NOERROR = UNKNOWN;
|
||||
/**
|
||||
* @var int
|
||||
* @cvalue PHP_SNMP_ERRNO_ANY
|
||||
* @link snmp.class.constants.errno-any
|
||||
*/
|
||||
public const ERRNO_ANY = UNKNOWN;
|
||||
public const int ERRNO_ANY = UNKNOWN;
|
||||
/**
|
||||
* @var int
|
||||
* @cvalue PHP_SNMP_ERRNO_GENERIC
|
||||
* @link snmp.class.constants.errno-generic
|
||||
*/
|
||||
public const ERRNO_GENERIC = UNKNOWN;
|
||||
public const int ERRNO_GENERIC = UNKNOWN;
|
||||
/**
|
||||
* @var int
|
||||
* @cvalue PHP_SNMP_ERRNO_TIMEOUT
|
||||
* @link snmp.class.constants.errno-timeout
|
||||
*/
|
||||
public const ERRNO_TIMEOUT = UNKNOWN;
|
||||
public const int ERRNO_TIMEOUT = UNKNOWN;
|
||||
/**
|
||||
* @var int
|
||||
* @cvalue PHP_SNMP_ERRNO_ERROR_IN_REPLY
|
||||
* @link snmp.class.constants.errno-error-in-reply
|
||||
*/
|
||||
public const ERRNO_ERROR_IN_REPLY = UNKNOWN;
|
||||
public const int ERRNO_ERROR_IN_REPLY = UNKNOWN;
|
||||
/**
|
||||
* @var int
|
||||
* @cvalue PHP_SNMP_ERRNO_OID_NOT_INCREASING
|
||||
* @link snmp.class.constants.errno-oid-not-increasing
|
||||
*/
|
||||
public const ERRNO_OID_NOT_INCREASING = UNKNOWN;
|
||||
public const int ERRNO_OID_NOT_INCREASING = UNKNOWN;
|
||||
/**
|
||||
* @var int
|
||||
* @cvalue PHP_SNMP_ERRNO_OID_PARSING_ERROR
|
||||
* @link snmp.class.constants.errno-oid-parsing-error
|
||||
*/
|
||||
public const ERRNO_OID_PARSING_ERROR = UNKNOWN;
|
||||
public const int ERRNO_OID_PARSING_ERROR = UNKNOWN;
|
||||
/**
|
||||
* @var int
|
||||
* @cvalue PHP_SNMP_ERRNO_MULTIPLE_SET_QUERIES
|
||||
* @link snmp.class.constants.errno-multiple-set-queries
|
||||
*/
|
||||
public const ERRNO_MULTIPLE_SET_QUERIES = UNKNOWN;
|
||||
public const int ERRNO_MULTIPLE_SET_QUERIES = UNKNOWN;
|
||||
|
||||
/** @readonly */
|
||||
public array $info;
|
||||
|
||||
26
ext/snmp/snmp_arginfo.h
generated
26
ext/snmp/snmp_arginfo.h
generated
@@ -1,5 +1,5 @@
|
||||
/* This is a generated file, edit the .stub.php file instead.
|
||||
* Stub hash: 659db99d46c15b508e992d55a1e421f48b51f6e3 */
|
||||
* Stub hash: ada00ea99d91d7e48e9965c5891227f97fd779a6 */
|
||||
|
||||
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_snmpget, 0, 3, IS_MIXED, 0)
|
||||
ZEND_ARG_TYPE_INFO(0, hostname, IS_STRING, 0)
|
||||
@@ -281,73 +281,73 @@ static zend_class_entry *register_class_SNMP(void)
|
||||
zval const_VERSION_1_value;
|
||||
ZVAL_LONG(&const_VERSION_1_value, SNMP_VERSION_1);
|
||||
zend_string *const_VERSION_1_name = zend_string_init_interned("VERSION_1", sizeof("VERSION_1") - 1, 1);
|
||||
zend_declare_class_constant_ex(class_entry, const_VERSION_1_name, &const_VERSION_1_value, ZEND_ACC_PUBLIC, NULL);
|
||||
zend_declare_typed_class_constant(class_entry, const_VERSION_1_name, &const_VERSION_1_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
|
||||
zend_string_release(const_VERSION_1_name);
|
||||
|
||||
zval const_VERSION_2c_value;
|
||||
ZVAL_LONG(&const_VERSION_2c_value, SNMP_VERSION_2c);
|
||||
zend_string *const_VERSION_2c_name = zend_string_init_interned("VERSION_2c", sizeof("VERSION_2c") - 1, 1);
|
||||
zend_declare_class_constant_ex(class_entry, const_VERSION_2c_name, &const_VERSION_2c_value, ZEND_ACC_PUBLIC, NULL);
|
||||
zend_declare_typed_class_constant(class_entry, const_VERSION_2c_name, &const_VERSION_2c_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
|
||||
zend_string_release(const_VERSION_2c_name);
|
||||
|
||||
zval const_VERSION_2C_value;
|
||||
ZVAL_LONG(&const_VERSION_2C_value, SNMP_VERSION_2c);
|
||||
zend_string *const_VERSION_2C_name = zend_string_init_interned("VERSION_2C", sizeof("VERSION_2C") - 1, 1);
|
||||
zend_declare_class_constant_ex(class_entry, const_VERSION_2C_name, &const_VERSION_2C_value, ZEND_ACC_PUBLIC, NULL);
|
||||
zend_declare_typed_class_constant(class_entry, const_VERSION_2C_name, &const_VERSION_2C_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
|
||||
zend_string_release(const_VERSION_2C_name);
|
||||
|
||||
zval const_VERSION_3_value;
|
||||
ZVAL_LONG(&const_VERSION_3_value, SNMP_VERSION_3);
|
||||
zend_string *const_VERSION_3_name = zend_string_init_interned("VERSION_3", sizeof("VERSION_3") - 1, 1);
|
||||
zend_declare_class_constant_ex(class_entry, const_VERSION_3_name, &const_VERSION_3_value, ZEND_ACC_PUBLIC, NULL);
|
||||
zend_declare_typed_class_constant(class_entry, const_VERSION_3_name, &const_VERSION_3_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
|
||||
zend_string_release(const_VERSION_3_name);
|
||||
|
||||
zval const_ERRNO_NOERROR_value;
|
||||
ZVAL_LONG(&const_ERRNO_NOERROR_value, PHP_SNMP_ERRNO_NOERROR);
|
||||
zend_string *const_ERRNO_NOERROR_name = zend_string_init_interned("ERRNO_NOERROR", sizeof("ERRNO_NOERROR") - 1, 1);
|
||||
zend_declare_class_constant_ex(class_entry, const_ERRNO_NOERROR_name, &const_ERRNO_NOERROR_value, ZEND_ACC_PUBLIC, NULL);
|
||||
zend_declare_typed_class_constant(class_entry, const_ERRNO_NOERROR_name, &const_ERRNO_NOERROR_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
|
||||
zend_string_release(const_ERRNO_NOERROR_name);
|
||||
|
||||
zval const_ERRNO_ANY_value;
|
||||
ZVAL_LONG(&const_ERRNO_ANY_value, PHP_SNMP_ERRNO_ANY);
|
||||
zend_string *const_ERRNO_ANY_name = zend_string_init_interned("ERRNO_ANY", sizeof("ERRNO_ANY") - 1, 1);
|
||||
zend_declare_class_constant_ex(class_entry, const_ERRNO_ANY_name, &const_ERRNO_ANY_value, ZEND_ACC_PUBLIC, NULL);
|
||||
zend_declare_typed_class_constant(class_entry, const_ERRNO_ANY_name, &const_ERRNO_ANY_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
|
||||
zend_string_release(const_ERRNO_ANY_name);
|
||||
|
||||
zval const_ERRNO_GENERIC_value;
|
||||
ZVAL_LONG(&const_ERRNO_GENERIC_value, PHP_SNMP_ERRNO_GENERIC);
|
||||
zend_string *const_ERRNO_GENERIC_name = zend_string_init_interned("ERRNO_GENERIC", sizeof("ERRNO_GENERIC") - 1, 1);
|
||||
zend_declare_class_constant_ex(class_entry, const_ERRNO_GENERIC_name, &const_ERRNO_GENERIC_value, ZEND_ACC_PUBLIC, NULL);
|
||||
zend_declare_typed_class_constant(class_entry, const_ERRNO_GENERIC_name, &const_ERRNO_GENERIC_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
|
||||
zend_string_release(const_ERRNO_GENERIC_name);
|
||||
|
||||
zval const_ERRNO_TIMEOUT_value;
|
||||
ZVAL_LONG(&const_ERRNO_TIMEOUT_value, PHP_SNMP_ERRNO_TIMEOUT);
|
||||
zend_string *const_ERRNO_TIMEOUT_name = zend_string_init_interned("ERRNO_TIMEOUT", sizeof("ERRNO_TIMEOUT") - 1, 1);
|
||||
zend_declare_class_constant_ex(class_entry, const_ERRNO_TIMEOUT_name, &const_ERRNO_TIMEOUT_value, ZEND_ACC_PUBLIC, NULL);
|
||||
zend_declare_typed_class_constant(class_entry, const_ERRNO_TIMEOUT_name, &const_ERRNO_TIMEOUT_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
|
||||
zend_string_release(const_ERRNO_TIMEOUT_name);
|
||||
|
||||
zval const_ERRNO_ERROR_IN_REPLY_value;
|
||||
ZVAL_LONG(&const_ERRNO_ERROR_IN_REPLY_value, PHP_SNMP_ERRNO_ERROR_IN_REPLY);
|
||||
zend_string *const_ERRNO_ERROR_IN_REPLY_name = zend_string_init_interned("ERRNO_ERROR_IN_REPLY", sizeof("ERRNO_ERROR_IN_REPLY") - 1, 1);
|
||||
zend_declare_class_constant_ex(class_entry, const_ERRNO_ERROR_IN_REPLY_name, &const_ERRNO_ERROR_IN_REPLY_value, ZEND_ACC_PUBLIC, NULL);
|
||||
zend_declare_typed_class_constant(class_entry, const_ERRNO_ERROR_IN_REPLY_name, &const_ERRNO_ERROR_IN_REPLY_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
|
||||
zend_string_release(const_ERRNO_ERROR_IN_REPLY_name);
|
||||
|
||||
zval const_ERRNO_OID_NOT_INCREASING_value;
|
||||
ZVAL_LONG(&const_ERRNO_OID_NOT_INCREASING_value, PHP_SNMP_ERRNO_OID_NOT_INCREASING);
|
||||
zend_string *const_ERRNO_OID_NOT_INCREASING_name = zend_string_init_interned("ERRNO_OID_NOT_INCREASING", sizeof("ERRNO_OID_NOT_INCREASING") - 1, 1);
|
||||
zend_declare_class_constant_ex(class_entry, const_ERRNO_OID_NOT_INCREASING_name, &const_ERRNO_OID_NOT_INCREASING_value, ZEND_ACC_PUBLIC, NULL);
|
||||
zend_declare_typed_class_constant(class_entry, const_ERRNO_OID_NOT_INCREASING_name, &const_ERRNO_OID_NOT_INCREASING_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
|
||||
zend_string_release(const_ERRNO_OID_NOT_INCREASING_name);
|
||||
|
||||
zval const_ERRNO_OID_PARSING_ERROR_value;
|
||||
ZVAL_LONG(&const_ERRNO_OID_PARSING_ERROR_value, PHP_SNMP_ERRNO_OID_PARSING_ERROR);
|
||||
zend_string *const_ERRNO_OID_PARSING_ERROR_name = zend_string_init_interned("ERRNO_OID_PARSING_ERROR", sizeof("ERRNO_OID_PARSING_ERROR") - 1, 1);
|
||||
zend_declare_class_constant_ex(class_entry, const_ERRNO_OID_PARSING_ERROR_name, &const_ERRNO_OID_PARSING_ERROR_value, ZEND_ACC_PUBLIC, NULL);
|
||||
zend_declare_typed_class_constant(class_entry, const_ERRNO_OID_PARSING_ERROR_name, &const_ERRNO_OID_PARSING_ERROR_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
|
||||
zend_string_release(const_ERRNO_OID_PARSING_ERROR_name);
|
||||
|
||||
zval const_ERRNO_MULTIPLE_SET_QUERIES_value;
|
||||
ZVAL_LONG(&const_ERRNO_MULTIPLE_SET_QUERIES_value, PHP_SNMP_ERRNO_MULTIPLE_SET_QUERIES);
|
||||
zend_string *const_ERRNO_MULTIPLE_SET_QUERIES_name = zend_string_init_interned("ERRNO_MULTIPLE_SET_QUERIES", sizeof("ERRNO_MULTIPLE_SET_QUERIES") - 1, 1);
|
||||
zend_declare_class_constant_ex(class_entry, const_ERRNO_MULTIPLE_SET_QUERIES_name, &const_ERRNO_MULTIPLE_SET_QUERIES_value, ZEND_ACC_PUBLIC, NULL);
|
||||
zend_declare_typed_class_constant(class_entry, const_ERRNO_MULTIPLE_SET_QUERIES_name, &const_ERRNO_MULTIPLE_SET_QUERIES_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
|
||||
zend_string_release(const_ERRNO_MULTIPLE_SET_QUERIES_name);
|
||||
|
||||
zval property_info_default_value;
|
||||
|
||||
Reference in New Issue
Block a user