@@ -322,7 +322,7 @@ ZEND_END_ARG_INFO()
322
322
323
323
/* OO arginfo */
324
324
325
- ZEND_BEGIN_ARG_INFO_EX (arginfo_snmp_open , 0 , 0 , 3 )
325
+ ZEND_BEGIN_ARG_INFO_EX (arginfo_snmp_create , 0 , 0 , 3 )
326
326
ZEND_ARG_INFO (0 , version )
327
327
ZEND_ARG_INFO (0 , host )
328
328
ZEND_ARG_INFO (0 , community )
@@ -1687,9 +1687,9 @@ PHP_FUNCTION(snmp_read_mib)
1687
1687
}
1688
1688
/* }}} */
1689
1689
1690
- /* {{{ proto SNMP SNMP::open (int version, string hostname, string community|securityName [, long timeout [, long retries]])
1690
+ /* {{{ proto SNMP SNMP::__construct (int version, string hostname, string community|securityName [, long timeout [, long retries]])
1691
1691
Creates a new SNMP session to specified host. */
1692
- PHP_METHOD (snmp , open )
1692
+ PHP_METHOD (snmp , __construct )
1693
1693
{
1694
1694
php_snmp_object * snmp_object ;
1695
1695
zval * object = getThis ();
@@ -2286,7 +2286,7 @@ static int php_snmp_write_oid_output_format(php_snmp_object *snmp_object, zval *
2286
2286
2287
2287
/* {{{ php_snmp_class_methods[] */
2288
2288
static zend_function_entry php_snmp_class_methods [] = {
2289
- PHP_ME (snmp , open , arginfo_snmp_open , ZEND_ACC_PUBLIC )
2289
+ PHP_ME (snmp , __construct , arginfo_snmp_create , ZEND_ACC_PUBLIC )
2290
2290
PHP_ME (snmp , close , arginfo_snmp_void , ZEND_ACC_PUBLIC )
2291
2291
PHP_ME (snmp , setSecurity , arginfo_snmp_setSecurity , ZEND_ACC_PUBLIC )
2292
2292
@@ -2297,7 +2297,6 @@ static zend_function_entry php_snmp_class_methods[] = {
2297
2297
PHP_ME (snmp , get_errno , arginfo_snmp_void , ZEND_ACC_PUBLIC )
2298
2298
PHP_ME (snmp , get_error , arginfo_snmp_void , ZEND_ACC_PUBLIC )
2299
2299
2300
- PHP_MALIAS (snmp , __construct , open , arginfo_snmp_open , ZEND_ACC_PUBLIC |ZEND_ACC_CTOR )
2301
2300
{NULL , NULL , NULL }
2302
2301
};
2303
2302
0 commit comments