I've got a php test that generates an output file and compares it with a sample one previuosly generated. I make the comparison by using the php function "md5_file" with both files. My problem is that even though both files have the exact same contents, the md5 function outputs different values (I have also tryed with sha1_file with the same results). In addition, I've compared with vimdiff both files for making sure that they're the same. Also it fails the comparison whe i manually copy the file contents from one file to the other.
My problem occurs on a machine running ubuntu 12.x, and the file is shared by git.
I have the impression that it might be a line ending problem, but I don't know how to be sure about it.