PHP 4.0 Bug #4247: failure while compiling ext/snmp/snmp.c
| From: | bpiwowar at connex dot lip6 dot fr | Date: | Wed, 26 Apr 2000 15:36:54 +0000 |
| Subject: | PHP 4.0 Bug #4247: failure while compiling ext/snmp/snmp.c | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-18215@lists.php.net to get a copy of this message | ||
From: bpiwowar@connex.lip6.fr
Operating system: Linux 2.2.14, gcc 2.95.2 (SuSE-6.4)
PHP version: 4.0 Release Candidate 1
PHP Bug Type: Compile Failure
Bug description: failure while compiling ext/snmp/snmp.c
PHP_FUNCTION(snmp_set_quick_print) {
zval **a1;
if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &a1) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_long_ex(a1);
int set_val = (*a1)->value.lval;
snmp_set_quick_print(set_val);
}
doesn't compile (parse error), but it is ok withPHP_FUNCTION(snmp_set_quick_print) {
zval **a1;
int set_val;
if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &a1) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_long_ex(a1);
set_val = (*a1)->value.lval;
snmp_set_quick_print(set_val);
}