This disclosure relates to dosage forms (e.g., solid dosage forms) comprising a drug-containing emulsion, a drug-containing microemulsion, a self-emulsifying oil composition, or a self-microemulsifying oil composition, wherein each comprises a weakly ionizable drug and a pH modifier. Also provided are pharmaceutical dosage forms (e.g., solid dosage forms) and methods of preparing the same.