INNER CODE UNIT · C

path_string

mongodb/mongo-php-driver · src/phongo_bson.c:279

	path_string = phongo_field_path_as_string(state->field_path);

	phongo_throw_exception(PHONGO_ERROR_UNEXPECTED_VALUE, "Detected unknown BSON type 0x%02hhx for field path \"%s\". Are you using the latest driver?", (unsigned char) v_type_code, path_string);

	efree(path_string);
}

static bool phongo_bson_visit_double(const bson_iter_t* iter ARG_UNUSED, const char* key, double v_double, void* data)
{
	zval*              retval = PHONGO_BSON_STATE_ZCHILD(data);
	phongo_bson_state* state  = (phongo_bson_state*) data;

	if (state->is_visiting_array) {
		add_next_index_double(retval, v_double);
	} else {
		add_assoc_double(retval, key, v_double);
	}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…