Merge pull request #1 from RiveraGroup/master

Bugfix when dumping just headers without a summary
Nit: sizeof(ph) is never 0.