summaryrefslogtreecommitdiff
path: root/ext/snmp/winsnmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/snmp/winsnmp.c')
-rw-r--r--ext/snmp/winsnmp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/snmp/winsnmp.c b/ext/snmp/winsnmp.c
index 2ac0aba2f4..0a9bcb6f99 100644
--- a/ext/snmp/winsnmp.c
+++ b/ext/snmp/winsnmp.c
@@ -74,10 +74,10 @@ void _php_snmp(INTERNAL_FUNCTION_PARAMETERS, int st) {
convert_to_string(a2);
convert_to_string(a3);
- agent=a1->value.str.val;
- community=a2->value.str.val;
+ agent=Z_STRVAL_P(a1);
+ community=Z_STRVAL_P(a2);
operation=st;
- SnmpMgrStrToOid(a3->value.str.val, &oid);
+ SnmpMgrStrToOid(Z_STRVAL_P(a3), &oid);
/*
I've limited this to only one oid, but we can create a