-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
SCA with Php Inspections (EA Extended) #24960
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
kalessil
commented
Nov 13, 2017
Q | A |
---|---|
Branch? | 3.4 |
Bug fix? | no |
New feature? | no |
BC breaks? | no |
Deprecations? | no |
Tests pass? | yes |
Fixed tickets | n/a |
License | MIT |
Doc PR | n/a |
- Greedy regex characters set fixed
- Potential race-conditions fixed
@@ -102,7 +102,7 @@ public function warmUp(array $values) | ||
|
||
$tmpFile = uniqid($this->file, true); | ||
|
||
file_put_contents($tmpFile, $dump); | ||
file_put_contents($tmpFile, $dump, LOCK_EX); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one is wrong: the file has a random name exactly to prevent the need for a lock.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, new false-positive. I'll revert this one.
BTW @nicolas-grekas, probably the modified code should rely on atomic writes (like FS component do, it's the right way to go IMO) and not exclusive lock as per mine changes. |
@kalessil I don't think adding a new dependency on FS is needed:
|
@stof: for sure, new dependency is not needed =) That's not so bad idea to not touch deprecated code - ths =) Will revert. |
I did revert changes in deprecated/dev-tools code. |
Thank you @kalessil. |
This PR was squashed before being merged into the 3.4 branch (closes #24960). Discussion ---------- SCA with Php Inspections (EA Extended) | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | n/a | License | MIT | Doc PR | n/a - Greedy regex characters set fixed - Potential race-conditions fixed Commits ------- 4d39a2d SCA with Php Inspections (EA Extended)
Thank you for merging @nicolas-grekas =) |
PR symfony#24960 introduced an issue with nfs mounts. nfs mounts do not, by default, support exclusive locks. Fixes Issue symfony#25336
This removes the exclusive lock that was introduced in symfony#24960. NFS File Systems do not support exclusive locking, and generates a lot of errors every time you try to do anything with che cache.
This PR was merged into the 3.4 branch. Discussion ---------- Remove Exclusive Lock That Breaks NFS Caching | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #25336 | License | MIT | Doc PR | n/a #24960 introduced an issue with NFS mounts that do not support exclusive locks. This reverts that change. FYI @kalessil Commits ------- a7ac100 Remove LOCK_EX That Breaks Cache Usage on NFS