In generated crud files and admin initiated cache files exists line endings inconsistency.
Those files should generally have eol style of template files and native to operating system.
In sfGenerator class there is a piece of code with hardcoded line feeds (\n), that prepends the template with a header:
protected function evalTemplate($templateFile)
{
$templateFile = sfLoader::getGeneratorTemplate($this->getGeneratorClass(), $this->getTheme(), $templateFile);
// eval template file
ob_start();
require($templateFile);
$content = ob_get_clean();
// replace [?php and ?]
$content = $this->replacePhpMarks($content);
$retval = "<?php\n".
"// auto-generated by ".$this->getGeneratorClass()."\n".
"// date: %s\n?>\n%s";
$retval = sprintf($retval, date('Y/m/d H:i:s'), $content);
return $retval;
}
If the template file has not unix eol style, the result is line endings inconsistency.