From a86443f5a35b9bba087fd78500290f5172ce38d5 Mon Sep 17 00:00:00 2001 From: "Christoph M. Becker" Date: Sun, 24 Jan 2021 17:58:26 +0100 Subject: [PATCH] Add missing stub for SNMPException --- ext/snmp/snmp.stub.php | 4 ++++ ext/snmp/snmp_arginfo.h | 7 ++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ext/snmp/snmp.stub.php b/ext/snmp/snmp.stub.php index 25ad96d033..e6e0cb22eb 100644 --- a/ext/snmp/snmp.stub.php +++ b/ext/snmp/snmp.stub.php @@ -104,3 +104,7 @@ class SNMP /** @return string */ public function getError() {} } + +class SNMPException extends RuntimeException +{ +} diff --git a/ext/snmp/snmp_arginfo.h b/ext/snmp/snmp_arginfo.h index 7a91113c50..52e7e7040d 100644 --- a/ext/snmp/snmp_arginfo.h +++ b/ext/snmp/snmp_arginfo.h @@ -1,5 +1,5 @@ /* This is a generated file, edit the .stub.php file instead. - * Stub hash: 68d61381ba27923bb68d6d9c6e5d5e8ff296cc90 */ + * Stub hash: 32433e63feea7cc46737000498e248da713ab5a3 */ ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_snmpget, 0, 3, stdClass, MAY_BE_ARRAY|MAY_BE_STRING|MAY_BE_BOOL) ZEND_ARG_TYPE_INFO(0, hostname, IS_STRING, 0) @@ -236,3 +236,8 @@ static const zend_function_entry class_SNMP_methods[] = { ZEND_ME(SNMP, getError, arginfo_class_SNMP_getError, ZEND_ACC_PUBLIC) ZEND_FE_END }; + + +static const zend_function_entry class_SNMPException_methods[] = { + ZEND_FE_END +}; -- 2.50.1