cvs: php4 /ext/snmp snmp.c
| From: | Jani Taskinen | Date: | Mon, 14 Oct 2002 02:46:52 +0000 |
| Subject: | cvs: php4 /ext/snmp snmp.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-14907@lists.php.net to get a copy of this message | ||
sniper Sun Oct 13 22:46:52 2002 EDT
Modified files:
/php4/ext/snmp snmp.c
Log:
This is not zval..
Index: php4/ext/snmp/snmp.c
diff -u php4/ext/snmp/snmp.c:1.60 php4/ext/snmp/snmp.c:1.61
--- php4/ext/snmp/snmp.c:1.60 Thu Sep 5 07:50:43 2002
+++ php4/ext/snmp/snmp.c Sun Oct 13 22:46:52 2002
@@ -17,7 +17,7 @@
| Steven Lawrance <slawrance@technologist.com> |
+----------------------------------------------------------------------+
*/
-/* $Id: snmp.c,v 1.60 2002/09/05 11:50:43 hyanantha Exp $ */
+/* $Id: snmp.c,v 1.61 2002/10/14 02:46:52 sniper Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -341,8 +341,8 @@
add_assoc_string(return_value,buf2,buf,1);
}
if (st >= 2 && st != 11) {
- if (Z_TYPE_P(vars) != SNMP_ENDOFMIBVIEW &&
- Z_TYPE_P(vars) != SNMP_NOSUCHOBJECT && Z_TYPE_P(vars) != SNMP_NOSUCHINSTANCE) {
+ if (vars->type != SNMP_ENDOFMIBVIEW &&
+ vars->type != SNMP_NOSUCHOBJECT && vars->type != SNMP_NOSUCHINSTANCE) {
memmove((char *)name, (char *)vars->name,vars->name_length * sizeof(oid));
name_length = vars->name_length;
keepwalking = 1;