Lines Matching refs:newval
2199 static int php_snmp_write_info(php_snmp_object *snmp_object, zval *newval TSRMLS_DC)
2207 static int php_snmp_write_max_oids(php_snmp_object *snmp_object, zval *newval TSRMLS_DC) in php_snmp_write_max_oids()
2212 if (Z_TYPE_P(newval) == IS_NULL) { in php_snmp_write_max_oids()
2217 if (Z_TYPE_P(newval) != IS_LONG) { in php_snmp_write_max_oids()
2218 ztmp = *newval; in php_snmp_write_max_oids()
2221 newval = &ztmp; in php_snmp_write_max_oids()
2224 if (Z_LVAL_P(newval) > 0) { in php_snmp_write_max_oids()
2225 snmp_object->max_oids = Z_LVAL_P(newval); in php_snmp_write_max_oids()
2227 …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()
2230 if (newval == &ztmp) { in php_snmp_write_max_oids()
2231 zval_dtor(newval); in php_snmp_write_max_oids()
2239 static int php_snmp_write_valueretrieval(php_snmp_object *snmp_object, zval *newval TSRMLS_DC) in php_snmp_write_valueretrieval()
2244 if (Z_TYPE_P(newval) != IS_LONG) { in php_snmp_write_valueretrieval()
2245 ztmp = *newval; in php_snmp_write_valueretrieval()
2248 newval = &ztmp; in php_snmp_write_valueretrieval()
2251 …if (Z_LVAL_P(newval) >= 0 && Z_LVAL_P(newval) <= (SNMP_VALUE_LIBRARY|SNMP_VALUE_PLAIN|SNMP_VALUE_O… in php_snmp_write_valueretrieval()
2252 snmp_object->valueretrieval = Z_LVAL_P(newval); in php_snmp_write_valueretrieval()
2254 …r_docref(NULL TSRMLS_CC, E_WARNING, "Unknown SNMP value retrieval method '%ld'", Z_LVAL_P(newval)); in php_snmp_write_valueretrieval()
2258 if (newval == &ztmp) { in php_snmp_write_valueretrieval()
2259 zval_dtor(newval); in php_snmp_write_valueretrieval()
2267 static int php_snmp_write_##name(php_snmp_object *snmp_object, zval *newval TSRMLS_DC) \
2270 if (Z_TYPE_P(newval) != IS_BOOL) { \
2271 ztmp = *newval; \
2274 newval = &ztmp; \
2277 snmp_object->name = Z_LVAL_P(newval); \
2279 if (newval == &ztmp) { \
2280 zval_dtor(newval); \
2290 static int php_snmp_write_oid_output_format(php_snmp_object *snmp_object, zval *newval TSRMLS_DC) in PHP_SNMP_BOOL_PROPERTY_WRITER_FUNCTION()
2294 if (Z_TYPE_P(newval) != IS_LONG) { in PHP_SNMP_BOOL_PROPERTY_WRITER_FUNCTION()
2295 ztmp = *newval; in PHP_SNMP_BOOL_PROPERTY_WRITER_FUNCTION()
2298 newval = &ztmp; in PHP_SNMP_BOOL_PROPERTY_WRITER_FUNCTION()
2301 switch(Z_LVAL_P(newval)) { in PHP_SNMP_BOOL_PROPERTY_WRITER_FUNCTION()
2308 snmp_object->oid_output_format = Z_LVAL_P(newval); in PHP_SNMP_BOOL_PROPERTY_WRITER_FUNCTION()
2311 …rror_docref(NULL TSRMLS_CC, E_WARNING, "Unknown SNMP output print format '%ld'", Z_LVAL_P(newval)); in PHP_SNMP_BOOL_PROPERTY_WRITER_FUNCTION()
2316 if (newval == &ztmp) { in PHP_SNMP_BOOL_PROPERTY_WRITER_FUNCTION()
2317 zval_dtor(newval); in PHP_SNMP_BOOL_PROPERTY_WRITER_FUNCTION()
2324 static int php_snmp_write_exceptions_enabled(php_snmp_object *snmp_object, zval *newval TSRMLS_DC) in php_snmp_write_exceptions_enabled()
2328 if (Z_TYPE_P(newval) != IS_LONG) { in php_snmp_write_exceptions_enabled()
2329 ztmp = *newval; in php_snmp_write_exceptions_enabled()
2332 newval = &ztmp; in php_snmp_write_exceptions_enabled()
2335 snmp_object->exceptions_enabled = Z_LVAL_P(newval); in php_snmp_write_exceptions_enabled()
2337 if (newval == &ztmp) { in php_snmp_write_exceptions_enabled()
2338 zval_dtor(newval); in php_snmp_write_exceptions_enabled()