josscrowcroft/php.mo — pull request #1 by DougHW (2012-01-12 21:39:26+00:00)
Title: Minor corrections/improvements

As I mentioned, I...

1) removed the eval (not veal, doh)
2) explode on all whitespace, not just spaces

I also changed from reading the entire file into a string and performing a large replace on it, to reading it in line by line with fopen, fgets and fclose. Shouldn't matter much, but with large PO files it could help.

I'd also just note that after racking my brain over the purpose of that eval statement, I couldn't figure it out. All it's doing is assigning $x = "$x" and returning it. Unless there's some crazy reason that forces a typecast or something, I don't understand the point.