Lines Matching refs:newval
2205 static int php_snmp_write_info(php_snmp_object *snmp_object, zval *newval TSRMLS_DC)
2213 static int php_snmp_write_max_oids(php_snmp_object *snmp_object, zval *newval TSRMLS_DC) in php_snmp_write_max_oids()
2218 if (Z_TYPE_P(newval) == IS_NULL) { in php_snmp_write_max_oids()
2223 if (Z_TYPE_P(newval) != IS_LONG) { in php_snmp_write_max_oids()
2224 ztmp = *newval; in php_snmp_write_max_oids()
2227 newval = &ztmp; in php_snmp_write_max_oids()
2230 if (Z_LVAL_P(newval) > 0) { in php_snmp_write_max_oids()
2231 snmp_object->max_oids = Z_LVAL_P(newval); in php_snmp_write_max_oids()
2233 …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()
2236 if (newval == &ztmp) { in php_snmp_write_max_oids()
2237 zval_dtor(newval); in php_snmp_write_max_oids()
2245 static int php_snmp_write_valueretrieval(php_snmp_object *snmp_object, zval *newval TSRMLS_DC) in php_snmp_write_valueretrieval()
2250 if (Z_TYPE_P(newval) != IS_LONG) { in php_snmp_write_valueretrieval()
2251 ztmp = *newval; in php_snmp_write_valueretrieval()
2254 newval = &ztmp; in php_snmp_write_valueretrieval()
2257 …if (Z_LVAL_P(newval) >= 0 && Z_LVAL_P(newval) <= (SNMP_VALUE_LIBRARY|SNMP_VALUE_PLAIN|SNMP_VALUE_O… in php_snmp_write_valueretrieval()
2258 snmp_object->valueretrieval = Z_LVAL_P(newval); in php_snmp_write_valueretrieval()
2260 …r_docref(NULL TSRMLS_CC, E_WARNING, "Unknown SNMP value retrieval method '%ld'", Z_LVAL_P(newval)); in php_snmp_write_valueretrieval()
2264 if (newval == &ztmp) { in php_snmp_write_valueretrieval()
2265 zval_dtor(newval); in php_snmp_write_valueretrieval()
2273 static int php_snmp_write_##name(php_snmp_object *snmp_object, zval *newval TSRMLS_DC) \
2276 if (Z_TYPE_P(newval) != IS_BOOL) { \
2277 ztmp = *newval; \
2280 newval = &ztmp; \
2283 snmp_object->name = Z_LVAL_P(newval); \
2285 if (newval == &ztmp) { \
2286 zval_dtor(newval); \
2296 static int php_snmp_write_oid_output_format(php_snmp_object *snmp_object, zval *newval TSRMLS_DC) in PHP_SNMP_BOOL_PROPERTY_WRITER_FUNCTION()
2300 if (Z_TYPE_P(newval) != IS_LONG) { in PHP_SNMP_BOOL_PROPERTY_WRITER_FUNCTION()
2301 ztmp = *newval; in PHP_SNMP_BOOL_PROPERTY_WRITER_FUNCTION()
2304 newval = &ztmp; in PHP_SNMP_BOOL_PROPERTY_WRITER_FUNCTION()
2307 switch(Z_LVAL_P(newval)) { in PHP_SNMP_BOOL_PROPERTY_WRITER_FUNCTION()
2314 snmp_object->oid_output_format = Z_LVAL_P(newval); in PHP_SNMP_BOOL_PROPERTY_WRITER_FUNCTION()
2317 …rror_docref(NULL TSRMLS_CC, E_WARNING, "Unknown SNMP output print format '%ld'", Z_LVAL_P(newval)); in PHP_SNMP_BOOL_PROPERTY_WRITER_FUNCTION()
2322 if (newval == &ztmp) { in PHP_SNMP_BOOL_PROPERTY_WRITER_FUNCTION()
2323 zval_dtor(newval); in PHP_SNMP_BOOL_PROPERTY_WRITER_FUNCTION()
2330 static int php_snmp_write_exceptions_enabled(php_snmp_object *snmp_object, zval *newval TSRMLS_DC) in php_snmp_write_exceptions_enabled()
2334 if (Z_TYPE_P(newval) != IS_LONG) { in php_snmp_write_exceptions_enabled()
2335 ztmp = *newval; in php_snmp_write_exceptions_enabled()
2338 newval = &ztmp; in php_snmp_write_exceptions_enabled()
2341 snmp_object->exceptions_enabled = Z_LVAL_P(newval); in php_snmp_write_exceptions_enabled()
2343 if (newval == &ztmp) { in php_snmp_write_exceptions_enabled()
2344 zval_dtor(newval); in php_snmp_write_exceptions_enabled()