In the framework of a model of zero-range potential, the problem of bound states of an electron in the field of two D0 centers (a two-center problem) in a semiconductor quantum wire is considered in the presence of a longitudinal magnetic field. It is shown that the magnetic field produces a significant shift of g and u terms and stabilizes the D 2 − states in quantum wires. It is found that, in the case of transverse polarization of light, the spectral dependence of the photoionization cross section of a D 2 − center exhibits the quantum-confined Zeeman effect with strongly pronounced oscillations of interference nature.