Closed vielhuber closed 2 years ago
The fix above is not sufficient: This has to be done inside loadFile
.
Hi @oscarotero, I'd like to help fixing this, as we seem to have issues when we try to modify the same PO file several times.
Is there any specific reason for using fopen
/fread
in the readFile
method instead of file_get_contents
? In our experience using file_get_contents solves the issues for us, but maybe I'm not aware of something?
Hi @ideag
Sorry, I missed this. Yes, you can use file_get_contents
, I don't remember any special reason to use fopen
.
Thanks for your contribution!
I'll make a PR 👍
Fix (Generator.php):
Reason: https://www.php.net/manual/de/function.filesize.php#101996