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

file_put_contents warning about dynamic parameter #90

Open
tebeso opened this issue Aug 28, 2021 · 0 comments
Open

file_put_contents warning about dynamic parameter #90

tebeso opened this issue Aug 28, 2021 · 0 comments

Comments

@tebeso
Copy link

tebeso commented Aug 28, 2021

I get phpcs: PHPCS_SecurityAudit.BadFunctions.FilesystemFunctions.WarnFilesystem: Filesystem function file_put_contents() detected with dynamic parameter
with this: file_put_contents('test.txt', 1, FILE_APPEND);
So FILE_APPEND is a dynamic parameter? If its the content or filename, i would say okay, but the flag?

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

No branches or pull requests

1 participant