I am not sure that is exactly what Pakistan said considering the article I gave the link to was written by a dubious middle eastern source. I think the article was written by some radical Arab trying to fan the flames of dissent. But, if it is true, then it is indeed scary. I have not seen any other source that claims Pakistan would side with Iran in a military action, but it seems plausible.