Lines Matching refs:newval

2207 static int php_snmp_write_info(php_snmp_object *snmp_object, zval *newval TSRMLS_DC)
2215 static int php_snmp_write_max_oids(php_snmp_object *snmp_object, zval *newval TSRMLS_DC) in php_snmp_write_max_oids()
2220 if (Z_TYPE_P(newval) == IS_NULL) { in php_snmp_write_max_oids()
2225 if (Z_TYPE_P(newval) != IS_LONG) { in php_snmp_write_max_oids()
2226 ztmp = *newval; in php_snmp_write_max_oids()
2229 newval = &ztmp; in php_snmp_write_max_oids()
2232 if (Z_LVAL_P(newval) > 0) { in php_snmp_write_max_oids()
2233 snmp_object->max_oids = Z_LVAL_P(newval); in php_snmp_write_max_oids()
2235 …LL TSRMLS_CC, E_WARNING, "max_oids should be positive integer or NULL, got %ld", Z_LVAL_P(newval)); in php_snmp_write_max_oids()
2238 if (newval == &ztmp) { in php_snmp_write_max_oids()
2239 zval_dtor(newval); in php_snmp_write_max_oids()
2247 static int php_snmp_write_valueretrieval(php_snmp_object *snmp_object, zval *newval TSRMLS_DC) in php_snmp_write_valueretrieval()
2252 if (Z_TYPE_P(newval) != IS_LONG) { in php_snmp_write_valueretrieval()
2253 ztmp = *newval; in php_snmp_write_valueretrieval()
2256 newval = &ztmp; in php_snmp_write_valueretrieval()
2259 …if (Z_LVAL_P(newval) >= 0 && Z_LVAL_P(newval) <= (SNMP_VALUE_LIBRARY|SNMP_VALUE_PLAIN|SNMP_VALUE_O… in php_snmp_write_valueretrieval()
2260 snmp_object->valueretrieval = Z_LVAL_P(newval); in php_snmp_write_valueretrieval()
2262 …r_docref(NULL TSRMLS_CC, E_WARNING, "Unknown SNMP value retrieval method '%ld'", Z_LVAL_P(newval)); in php_snmp_write_valueretrieval()
2266 if (newval == &ztmp) { in php_snmp_write_valueretrieval()
2267 zval_dtor(newval); in php_snmp_write_valueretrieval()
2275 static int php_snmp_write_##name(php_snmp_object *snmp_object, zval *newval TSRMLS_DC) \
2278 if (Z_TYPE_P(newval) != IS_BOOL) { \
2279 ztmp = *newval; \
2282 newval = &ztmp; \
2285 snmp_object->name = Z_LVAL_P(newval); \
2287 if (newval == &ztmp) { \
2288 zval_dtor(newval); \
2298 static int php_snmp_write_oid_output_format(php_snmp_object *snmp_object, zval *newval TSRMLS_DC) in PHP_SNMP_BOOL_PROPERTY_WRITER_FUNCTION()
2302 if (Z_TYPE_P(newval) != IS_LONG) { in PHP_SNMP_BOOL_PROPERTY_WRITER_FUNCTION()
2303 ztmp = *newval; in PHP_SNMP_BOOL_PROPERTY_WRITER_FUNCTION()
2306 newval = &ztmp; in PHP_SNMP_BOOL_PROPERTY_WRITER_FUNCTION()
2309 switch(Z_LVAL_P(newval)) { in PHP_SNMP_BOOL_PROPERTY_WRITER_FUNCTION()
2316 snmp_object->oid_output_format = Z_LVAL_P(newval); in PHP_SNMP_BOOL_PROPERTY_WRITER_FUNCTION()
2319 …rror_docref(NULL TSRMLS_CC, E_WARNING, "Unknown SNMP output print format '%ld'", Z_LVAL_P(newval)); in PHP_SNMP_BOOL_PROPERTY_WRITER_FUNCTION()
2324 if (newval == &ztmp) { in PHP_SNMP_BOOL_PROPERTY_WRITER_FUNCTION()
2325 zval_dtor(newval); in PHP_SNMP_BOOL_PROPERTY_WRITER_FUNCTION()
2332 static int php_snmp_write_exceptions_enabled(php_snmp_object *snmp_object, zval *newval TSRMLS_DC) in php_snmp_write_exceptions_enabled()
2336 if (Z_TYPE_P(newval) != IS_LONG) { in php_snmp_write_exceptions_enabled()
2337 ztmp = *newval; in php_snmp_write_exceptions_enabled()
2340 newval = &ztmp; in php_snmp_write_exceptions_enabled()
2343 snmp_object->exceptions_enabled = Z_LVAL_P(newval); in php_snmp_write_exceptions_enabled()
2345 if (newval == &ztmp) { in php_snmp_write_exceptions_enabled()
2346 zval_dtor(newval); in php_snmp_write_exceptions_enabled()