[PHP-CVS] [php-src] master: snmp: use zend_result type instead of int type
[email protected] (Gina Peter Banyard)
| Newsgroups | php.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: Gina Peter Banyard (Girgias)
Date: 2026-08-22T14:28:38+01:00
Commit: https://github.com/php/php-src/commit/16b3863d7ddd00872dcf6f2bbf5bb476174d0de2
Raw diff: https://github.com/php/php-src/commit/16b3863d7ddd00872dcf6f2bbf5bb476174d0de2.diff
snmp: use zend_result type instead of int type
Changed paths:
M ext/snmp/snmp.c
Diff:
diff --git a/ext/snmp/snmp.c b/ext/snmp/snmp.c
index 1a2770cd3380..bcca8d44de89 100644
--- a/ext/snmp/snmp.c
+++ b/ext/snmp/snmp.c
@@ -1859,13 +1859,12 @@ zval *php_snmp_read_property(zend_object *object, zend_string *name, int type, v
zval *retval;
php_snmp_object *obj;
php_snmp_prop_handler *hnd;
- int ret;
obj = php_snmp_fetch_object(object);
hnd = zend_hash_find_ptr(&php_snmp_properties, name);
if (hnd && hnd->read_func) {
- ret = hnd->read_func(obj, rv);
+ zend_result ret = hnd->read_func(obj, rv);
if (ret == SUCCESS) {
retval = rv;
} else {