php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #4247 failure while compiling ext/snmp/snmp.c
Submitted: 2000-04-26 11:36 UTC Modified: 2000-04-27 12:40 UTC
From: bpiwowar at connex dot lip6 dot fr Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0 Release Candidate 1 OS: Linux 2.2.14, gcc 2.95.2 (SuSE-6
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: bpiwowar at connex dot lip6 dot fr
New email:
PHP Version: OS:

 

 [2000-04-26 11:36 UTC] bpiwowar at connex dot lip6 dot fr
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);
}

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-04-27 12:40 UTC] sterling at cvs dot php dot net
This is already fixed in CVS, thanks for your support and fix.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sun Oct 11 18:00:01 2026 UTC