note 5347 modified in ref.snmp by irchtml

From: Date: Tue, 17 Feb 2004 14:32:15 +0000
Subject: note 5347 modified in ref.snmp by irchtml
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-65299@lists.php.net to get a copy of this message
Regarding to Gustavo's SNMP question. I changed the code on ext/snmp/snmp.c.<br> Heres how the snmp support compiles without errors. Dont forget the --enable-ucd-snmp-hack:-)<br> look for the following function (about line 360)<p> PHP_FUNCTION(snmp_set_quick_print) { /* jecete */ int set_val; zval **a1; if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &a1) == FAILURE) { WRONG_PARAM_COUNT; } convert_to_long_ex(a1); /* jecete Old value commented int set_val = (*a1)->value.lval; */ set_val = (*a1)->value.lval; snmp_set_quick_print(set_val); } --was-- Regarding to Gustavo's SNMP question. I changed the code on ext/snmp/snmp.c.<br> Heres how the snmp support compiles without errors. Dont forget the --enable-ucd-snmp-hack:-)<br> look for the following function (about line 360)<p> <pre> PHP_FUNCTION(snmp_set_quick_print) { /* jecete */ int set_val; zval **a1; if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &a1) == FAILURE) { WRONG_PARAM_COUNT; } convert_to_long_ex(a1); /* jecete Old value commented int set_val = (*a1)->value.lval; */ set_val = (*a1)->value.lval; snmp_set_quick_print(set_val); } </pre> http://www.php.net/manual/en/ref.snmp.php

« previous php.notes (#65299) next »