Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Closed
wants to merge 4 commits into from
Closed

SCA with Php Inspections (EA Extended) #24960

wants to merge 4 commits into from

Conversation

kalessil
Copy link
Contributor

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

@kalessil kalessil changed the base branch from master to 3.4 November 13, 2017 20:34
@@ -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);
Copy link
Member

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.

Copy link
Contributor Author

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.

@kalessil
Copy link
Contributor Author

kalessil commented Nov 13, 2017

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.

@xabbuh xabbuh added this to the 3.4 milestone Nov 14, 2017
@stof
Copy link
Member

stof commented Nov 17, 2017

@kalessil I don't think adding a new dependency on FS is needed:

  • the ClassLoader component is deprecated (and ClassMapGenerator is not a runtime tool anyway)
  • Kernel::setClassCache is deprecated too
  • the Intl PhpBundleWriter is a maintainer tool (used to update the data shipped in the component)

@kalessil
Copy link
Contributor Author

@stof: for sure, new dependency is not needed =)

That's not so bad idea to not touch deprecated code - ths =) Will revert.

@kalessil
Copy link
Contributor Author

I did revert changes in deprecated/dev-tools code.

@nicolas-grekas
Copy link
Member

Thank you @kalessil.

nicolas-grekas added a commit that referenced this pull request Dec 4, 2017
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)
@kalessil
Copy link
Contributor Author

kalessil commented Dec 4, 2017

Thank you for merging @nicolas-grekas =)

brianfreytag added a commit to brianfreytag/symfony that referenced this pull request Dec 5, 2017
PR symfony#24960 introduced an issue with nfs mounts. nfs mounts do not, by
default, support exclusive locks.

Fixes Issue symfony#25336
brianfreytag added a commit to brianfreytag/symfony that referenced this pull request Dec 5, 2017
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.
nicolas-grekas added a commit that referenced this pull request Dec 6, 2017
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.