diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2019-06-14 12:46:56 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-06-14 12:46:56 +0200 |
commit | 3e8b456ada1c64006871bf514d40c25467d46f7f (patch) | |
tree | bd49659d9a71813bc770175f4228a47d89990804 /ext/snmp | |
parent | 26009b4c36f22392430e0d56cacc764a97ff84a2 (diff) | |
parent | e6aec81470dd5231edb8433ee31cceae817140e9 (diff) | |
download | php-git-3e8b456ada1c64006871bf514d40c25467d46f7f.tar.gz |
Merge branch 'PHP-7.4'
Diffstat (limited to 'ext/snmp')
-rw-r--r-- | ext/snmp/snmp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/snmp/snmp.c b/ext/snmp/snmp.c index 1f985316c1..318dfbf310 100644 --- a/ext/snmp/snmp.c +++ b/ext/snmp/snmp.c @@ -618,7 +618,7 @@ static void php_snmp_getvalue(struct variable_list *vars, zval *snmpval, int val break; case ASN_OPAQUE_DOUBLE: /* 0x79, asn1.h */ - snprintf(buf, buflen, "%Lf", *vars->val.doubleVal); + snprintf(buf, buflen, "%f", *vars->val.doubleVal); ZVAL_STRING(&val, buf); break; @@ -955,7 +955,7 @@ static int php_snmp_parse_oid(zval *object, int st, struct objid_query *objid_qu if (st & SNMP_CMD_SET) { if (Z_TYPE_P(type) == IS_STRING && Z_TYPE_P(value) == IS_STRING) { if (Z_STRLEN_P(type) != 1) { - php_error_docref(NULL, E_WARNING, "Bogus type '%s', should be single char, got %u", Z_STRVAL_P(type), Z_STRLEN_P(type)); + php_error_docref(NULL, E_WARNING, "Bogus type '%s', should be single char, got %zu", Z_STRVAL_P(type), Z_STRLEN_P(type)); efree(objid_query->vars); return FALSE; } @@ -994,7 +994,7 @@ static int php_snmp_parse_oid(zval *object, int st, struct objid_query *objid_qu if (idx_type < Z_ARRVAL_P(type)->nNumUsed) { convert_to_string_ex(tmp_type); if (Z_STRLEN_P(tmp_type) != 1) { - php_error_docref(NULL, E_WARNING, "'%s': bogus type '%s', should be single char, got %u", Z_STRVAL_P(tmp_oid), Z_STRVAL_P(tmp_type), Z_STRLEN_P(tmp_type)); + php_error_docref(NULL, E_WARNING, "'%s': bogus type '%s', should be single char, got %zu", Z_STRVAL_P(tmp_oid), Z_STRVAL_P(tmp_type), Z_STRLEN_P(tmp_type)); efree(objid_query->vars); return FALSE; } |