Lines Matching refs:newval

2163 static int php_snmp_write_info(php_snmp_object *snmp_object, zval *newval)
2171 static int php_snmp_write_max_oids(php_snmp_object *snmp_object, zval *newval) in php_snmp_write_max_oids() argument
2176 if (Z_TYPE_P(newval) == IS_NULL) { in php_snmp_write_max_oids()
2181 if (Z_TYPE_P(newval) != IS_LONG) { in php_snmp_write_max_oids()
2182 ztmp = *newval; in php_snmp_write_max_oids()
2185 newval = &ztmp; in php_snmp_write_max_oids()
2188 if (Z_LVAL_P(newval) > 0) { in php_snmp_write_max_oids()
2189 snmp_object->max_oids = Z_LVAL_P(newval); in php_snmp_write_max_oids()
2191 …_docref(NULL, E_WARNING, "max_oids should be positive integer or NULL, got %pd", Z_LVAL_P(newval)); in php_snmp_write_max_oids()
2194 if (newval == &ztmp) { in php_snmp_write_max_oids()
2195 zval_dtor(newval); in php_snmp_write_max_oids()
2203 static int php_snmp_write_valueretrieval(php_snmp_object *snmp_object, zval *newval) in php_snmp_write_valueretrieval() argument
2208 if (Z_TYPE_P(newval) != IS_LONG) { in php_snmp_write_valueretrieval()
2209 ztmp = *newval; in php_snmp_write_valueretrieval()
2212 newval = &ztmp; in php_snmp_write_valueretrieval()
2215 …if (Z_LVAL_P(newval) >= 0 && Z_LVAL_P(newval) <= (SNMP_VALUE_LIBRARY|SNMP_VALUE_PLAIN|SNMP_VALUE_O… in php_snmp_write_valueretrieval()
2216 snmp_object->valueretrieval = Z_LVAL_P(newval); in php_snmp_write_valueretrieval()
2218 php_error_docref(NULL, E_WARNING, "Unknown SNMP value retrieval method '%pd'", Z_LVAL_P(newval)); in php_snmp_write_valueretrieval()
2222 if (newval == &ztmp) { in php_snmp_write_valueretrieval()
2223 zval_dtor(newval); in php_snmp_write_valueretrieval()
2231 static int php_snmp_write_##name(php_snmp_object *snmp_object, zval *newval) \
2234 ZVAL_COPY(&ztmp, newval); \
2236 newval = &ztmp; \
2238 snmp_object->name = Z_TYPE_P(newval) == IS_TRUE? 1 : 0; \
2248 static int php_snmp_write_oid_output_format(php_snmp_object *snmp_object, zval *newval) in PHP_SNMP_BOOL_PROPERTY_WRITER_FUNCTION()
2252 if (Z_TYPE_P(newval) != IS_LONG) { in PHP_SNMP_BOOL_PROPERTY_WRITER_FUNCTION()
2253 ZVAL_COPY(&ztmp, newval); in PHP_SNMP_BOOL_PROPERTY_WRITER_FUNCTION()
2255 newval = &ztmp; in PHP_SNMP_BOOL_PROPERTY_WRITER_FUNCTION()
2258 switch(Z_LVAL_P(newval)) { in PHP_SNMP_BOOL_PROPERTY_WRITER_FUNCTION()
2265 snmp_object->oid_output_format = Z_LVAL_P(newval); in PHP_SNMP_BOOL_PROPERTY_WRITER_FUNCTION()
2268 php_error_docref(NULL, E_WARNING, "Unknown SNMP output print format '%pd'", Z_LVAL_P(newval)); in PHP_SNMP_BOOL_PROPERTY_WRITER_FUNCTION()
2273 if (newval == &ztmp) { in PHP_SNMP_BOOL_PROPERTY_WRITER_FUNCTION()
2274 zval_ptr_dtor(newval); in PHP_SNMP_BOOL_PROPERTY_WRITER_FUNCTION()
2281 static int php_snmp_write_exceptions_enabled(php_snmp_object *snmp_object, zval *newval) in php_snmp_write_exceptions_enabled() argument
2285 if (Z_TYPE_P(newval) != IS_LONG) { in php_snmp_write_exceptions_enabled()
2286 ZVAL_COPY(&ztmp, newval); in php_snmp_write_exceptions_enabled()
2288 newval = &ztmp; in php_snmp_write_exceptions_enabled()
2291 snmp_object->exceptions_enabled = Z_LVAL_P(newval); in php_snmp_write_exceptions_enabled()
2293 if (newval == &ztmp) { in php_snmp_write_exceptions_enabled()
2294 zval_ptr_dtor(newval); in php_snmp_write_exceptions_enabled()