TIL that Porphyria, a collection of diseases where symptoms include severe sun sensitivity, prominent canine teeth and peculiar behaviour, is thought to be the basis of the vampire legend – especially as symptoms are worsened by garlic.

This is wrong. From wikipedia:

As it was believed that the folkloric vampire could move about freely in daylight hours, as opposed to the 20th century variant, congenital erythropoietic porphyria cannot readily explain the folkloric vampire but may be an explanation of the vampire as we know it in the 20th century. In addition, the folkloric vampire, when unearthed, was always described as looking quite healthy ("as they were in life"), while due to disfiguring aspects of the disease, sufferers would not have passed the exhumation test. Individuals with congenital erythropoietic porphyria do not crave blood. The enzyme (hematin) necessary to alleviate symptoms is not absorbed intact on oral ingestion, and drinking blood would have no beneficial effect on the sufferer. Finally, and most important, the fact that vampire reports were literally rampant in the 18th century, and that congenital erythropoietic porphyria is an extremely rare manifestation of a rare disease, makes it an unlikely explanation of the folkloric vampire.

Porphyria only matches a very modern depiction of vampires, not the vampires of folklore.

/r/todayilearned Thread Link - bydewey.com