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

[Filesystem] Check that directory is writable after created it in dumpFile()#21200

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

Conversation

@chalasr
Copy link
Member

QA
Branch?2.7
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets#20612 (comment)
LicenseMIT
Doc PRn/a

In case permissions have been changed meanwhile

}elseif (!is_writable($dir)) {
}

if (!is_writable($dir)) {

Choose a reason for hiding this comment

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

this check is already bundled into file_put_contents' failure handling. You're just making this case more explicit, but file_put_contents can fail for more reasons.
So, should it be considered a new feature? Should we use error_get_last to generate a more useful error message? should this go on master?

Copy link
Member

Choose a reason for hiding this comment

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

The handling was already there before. It just didn't take into account that the directory could have been created by another process.

Choose a reason for hiding this comment

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

got it :)

@nicolas-grekas
Copy link
Member

👍

@xabbuh
Copy link
Member

👍

Status: Reviewed

@javiereguiluz
Copy link
Member

👍

@fabpot
Copy link
Member

Thank you@chalasr.

@fabpotfabpot merged commitdbc4148 intosymfony:2.7Jan 8, 2017
fabpot added a commit that referenced this pull requestJan 8, 2017
…d it in dumpFile() (chalasr)This PR was merged into the 2.7 branch.Discussion----------[Filesystem] Check that directory is writable after created it in dumpFile()| Q             | A| ------------- | ---| Branch?       | 2.7| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets |#20612 (comment)| License       | MIT| Doc PR        | n/aIn case permissions have been changed meanwhileCommits-------dbc4148 [Filesystem] Check that the directory is writable after created it in dumpFile()
@chalasrchalasr deleted the filesystem/dumpfile-writable-dir branchJanuary 8, 2017 18:39
This was referencedJan 12, 2017
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

@xabbuhxabbuhxabbuh left review comments

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

6 participants

@chalasr@nicolas-grekas@xabbuh@javiereguiluz@fabpot@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp