You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rename() is working on Linux/UNIX but not working on Windows on a directory containing a file
formerly opened within the same script. The problem persists even after properly closing the
file and flushing the buffer.
Strangely it seem that the rename command is executed BEFORE the handle closing on Windows.
Inserting a sleep() command before the renaming cures the problem."
I added sleep(1) before every rename() and everythings now works perfectly fine.
My question: Does the Symfony support Windows OS? If yes I could add Pull Request.
The text was updated successfully, but these errors were encountered:
I done more tests and it depends on actual state of system. Sometimes it works on usleep(500). In most cases sleep(1) is good for my OS, but found that some user on other windows need to increase it to 3 or even 5.
At this point I don't see any good workaround for this PHP bug for Symfony2. It seems it can only be fixed in PHP level. In next days (if found some free time) I'll send bug report to PHP.
I think the best solution for now is to add information about this bug in some FAQ or Known Issues page/wiki.
Hi
Clear Cache in windows throw ErrorException because of Access Denied of cache folders.
CacheClearCommand use php method rename, which one not work properly in windows.
From Comments at http://php.net/manual/en/function.rename.php:
I added sleep(1) before every rename() and everythings now works perfectly fine.
My question: Does the Symfony support Windows OS? If yes I could add Pull Request.
The text was updated successfully, but these errors were encountered: