Skip to content
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

fix(docs): File permission should be octal in yaml #99

Merged
merged 1 commit into from
Sep 12, 2022

Conversation

Tofandel
Copy link
Contributor

Without the octal type this results in very weird file permissions

Without the octal type this results in very weird file permissions
@Tofandel Tofandel changed the title fix: File permission should be octal fix(docs): File permission should be octal Jun 10, 2022
@Tofandel Tofandel changed the title fix(docs): File permission should be octal fix(docs): File permission should be octal in yaml Jun 10, 2022
@maxhelias
Copy link
Collaborator

I'm not sure about this. For example the LocalFilesystemAdapter use the php function chmod (https://www.php.net/manual/fr/function.chmod.php) to set permissions.
What is your use case ?

@Tofandel
Copy link
Contributor Author

Tofandel commented Aug 12, 2022

It's not a use case, it's a bug in the doc, chmod expects an octal value, if we don't use octal then we get the wrong permissions as explained in the doc you just linked ;)

The problem is yaml interprets 0755 as a decimal and not an octal, to be an octal in yaml it needs to be prepended with 0o and not just 0 like in php

@maxhelias
Copy link
Collaborator

maxhelias commented Aug 12, 2022

Oh I just understood my mistake. Before Symfony 5.1, it was supported in the component and is not anymore. Sorry

@tgalopin tgalopin merged commit 52fa43d into thephpleague:master Sep 12, 2022
@tgalopin
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants