Skip to content

Avoid file clash in root_check skipifs #4779

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 5 commits into from
Closed

Avoid file clash in root_check skipifs #4779

wants to merge 5 commits into from

Conversation

villfa
Copy link
Contributor

@villfa villfa commented Oct 5, 2019

No description provided.

@nikic
Copy link
Member

nikic commented Oct 7, 2019

As this is repeated so many times, it would probably make sense to extract this check into a separate file (or rather one per extension), so you could do something like require(__DIR__ . '/../skipif_root.inc'); Not sure how to best make sure that there are no file clashes in that case though. Possibly by using tempnam() instead?

@nikic
Copy link
Member

nikic commented Oct 7, 2019

@villfa You might also want to request a php git account at https://www.php.net/git-php.php.

@php-pulls php-pulls closed this in 8b5c351 Oct 8, 2019
@villfa villfa deleted the fix-root-check-clashes branch October 9, 2019 20:42
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.

4 participants