]> granicus.if.org Git - php/commitdiff
Fix use of Z_LVAL_P in snmp
authorNikita Popov <nikita.ppv@gmail.com>
Sun, 11 Feb 2018 21:47:01 +0000 (22:47 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Sun, 11 Feb 2018 21:47:01 +0000 (22:47 +0100)
ext/snmp/snmp.c

index b7e2fbebe7fd4953b81ccbdc5bc9ccfe83d56078..b4433de950ec68b152e45550a39754646ea78b19 100644 (file)
@@ -2157,7 +2157,7 @@ static int php_snmp_write_valueretrieval(php_snmp_object *snmp_object, zval *new
        if (lval >= 0 && lval <= (SNMP_VALUE_LIBRARY|SNMP_VALUE_PLAIN|SNMP_VALUE_OBJECT)) {
                snmp_object->valueretrieval = lval;
        } else {
-               php_error_docref(NULL, E_WARNING, "Unknown SNMP value retrieval method '" ZEND_LONG_FMT "'", Z_LVAL_P(newval));
+               php_error_docref(NULL, E_WARNING, "Unknown SNMP value retrieval method '" ZEND_LONG_FMT "'", lval);
                ret = FAILURE;
        }