Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

[FrameworkBundle] Prevent silenced warning by checking if /proc/mount exists#53785

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
nicolas-grekas merged 1 commit intosymfony:5.4fromshyim:remove-warning-on-mac
Feb 6, 2024

Conversation

shyim
Copy link
Contributor

QA
Branch?5.4
Bug fix?yes
New feature?no
Deprecations?no
Issues
LicenseMIT

cache:clear sometimes throws a warning as it tries to access/proc/mounts. This does not exist on macOS. Therefore I skipped that check completely for non linux systems.

Example output from the command line:
Screenshot 2024-02-04 at 18 34 30

Chris53897 reacted with thumbs up emoji
@@ -204,6 +198,10 @@ protected function execute(InputInterface $input, OutputInterface $output): int

private function isNfs(string $dir): bool
{
if ('Linux' !== \PHP_OS) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

on 7.1, we have this instead:

if ('/' === \DIRECTORY_SEPARATOR &&is_readable('/proc/mounts') &&$files = @file('/proc/mounts')) {

@nicolas-grekasnicolas-grekas changed the titleRemove warning accessing /proc/mounts on non Linux systems[FrameworkBundle] Prevent silenced warning by checking if /proc/mount existsFeb 6, 2024
@nicolas-grekas
Copy link
Member

Thank you@shyim.

shyim reacted with heart emoji

@nicolas-grekasnicolas-grekas merged commit354cc2c intosymfony:5.4Feb 6, 2024
@shyim
Copy link
ContributorAuthor

Ohh thanks for pushing into. was traveling.

@shyimshyim deleted the remove-warning-on-mac branchFebruary 6, 2024 07:21
This was referencedFeb 27, 2024
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas left review comments

Assignees
No one assigned
Projects
None yet
Milestone
5.4
Development

Successfully merging this pull request may close these issues.

3 participants
@shyim@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp