Lines Matching refs:descr
244 const field_descriptor *descr; in from_zval_write_aggregation() local
251 for (descr = descriptors; descr->name != NULL && !ctx->err.has_error; descr++) { in from_zval_write_aggregation()
253 descr->name, descr->name_size - 1)) != NULL) { in from_zval_write_aggregation()
255 if (descr->from_zval == NULL) { in from_zval_write_aggregation()
257 "of key '%s'", descr->name); in from_zval_write_aggregation()
261 zend_llist_add_element(&ctx->keys, (void*)&descr->name); in from_zval_write_aggregation()
262 descr->from_zval(elem, ((char*)structure) + descr->field_offset, ctx); in from_zval_write_aggregation()
265 } else if (descr->required) { in from_zval_write_aggregation()
266 do_from_zval_err(ctx, "The key '%s' is required", descr->name); in from_zval_write_aggregation()
276 const field_descriptor *descr; in to_zval_read_aggregation() local
281 for (descr = descriptors; descr->name != NULL && !ctx->err.has_error; descr++) { in to_zval_read_aggregation()
284 if (descr->to_zval == NULL) { in to_zval_read_aggregation()
286 "field into value for key '%s'", descr->name); in to_zval_read_aggregation()
291 new_zv = zend_symtable_str_update(Z_ARRVAL_P(zarr), descr->name, descr->name_size - 1, &tmp); in to_zval_read_aggregation()
293 zend_llist_add_element(&ctx->keys, (void*)&descr->name); in to_zval_read_aggregation()
294 descr->to_zval(structure + descr->field_offset, new_zv, ctx); in to_zval_read_aggregation()