Equilibrium structure of stars with radiation pressure in the presence of a magnetic field