In Contribute 3.1, when I create a new page based off of a template, the PHP
code from the templated is removed from above the HTML tag in the created PHP
file.

I did not have this problem in 3.0. Upgrading to 3.1 introduced this problem.
I can edit existing pages without the PHP being stripped.

This upgrade essentially broke my site.