Normalize line endings in PHPT tests, fixes #1447

For PHPT tests, normalize line endings in test output and EXPECT/EXPECTF sections.
Fixes bug #1447