Landing Gear Malfunction

Planes nowadays have safety features that would not allow this, but there was a malfunction and the landing gear retracted