[PHP-CVS] [php-src] master: snmp: update php_snmp_write_t and php_snmp_read_t to use zend_result return type

[email protected] (Steve Wilton via Gina Peter Banyard)
Newsgroups php.cvs
Message-ID <[email protected]>
Author: Steve Wilton (eskyuu)
Committer: Gina Peter Banyard (Girgias)
Date: 2026-08-22T14:28:38+01:00

Commit: https://github.com/php/php-src/commit/79c11935fa3550181583b3ca306ccd39949ade48
Raw diff: https://github.com/php/php-src/commit/79c11935fa3550181583b3ca306ccd39949ade48.diff

snmp: update php_snmp_write_t and php_snmp_read_t to use zend_result return type

Changed paths:
  M  ext/snmp/php_snmp.h


Diff:

diff --git a/ext/snmp/php_snmp.h b/ext/snmp/php_snmp.h
index a9a7926504f5..c5376ee2e1b2 100644
--- a/ext/snmp/php_snmp.h
+++ b/ext/snmp/php_snmp.h
@@ -60,8 +60,8 @@ typedef struct _php_snmp_object {
 
 #define Z_SNMP_P(zv) php_snmp_fetch_object(Z_OBJ_P((zv)))
 
-typedef int (*php_snmp_read_t)(php_snmp_object *snmp_object, zval *retval);
-typedef int (*php_snmp_write_t)(php_snmp_object *snmp_object, zval *newval);
+typedef zend_result (*php_snmp_read_t)(php_snmp_object *snmp_object, zval *retval);
+typedef zend_result (*php_snmp_write_t)(php_snmp_object *snmp_object, zval *newval);
 
 typedef struct _ptp_snmp_prop_handler {
 	const char *name;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.