8000 Suppress warnings when open_basedir is non-empty by cbj4074 · Pull Request #19 · symfony/process · GitHub
[go: up one dir, main page]

Skip to content

Suppress warnings when open_basedir is non-empty #19

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 1 commit into from
Closed

Suppress warnings when open_basedir is non-empty #19

wants to merge 1 commit into from

Conversation

cbj4074
Copy link
Contributor
@cbj4074 cbj4074 commented May 3, 2018

While 709e15e did not "cause" this problem, it made it more apparent (because the other is_executable() calls are wrapped in conditional logic that makes them less likely to be executed).

If PHP is configured with a non-empty open_basedir value that does not permit access to the target location, these calls to is_executable() throw warnings.

While Symfony may not raise exceptions for warnings in production environments, other frameworks (such as Laravel) do, in which case any of these checks causes a show-stopping 500 error.

We fixed a similar issue in the ExecutableFinder class via symfony/symfony#16182 .

While 709e15e did not cause this problem, it made it more apparent.

If PHP is configured with a non-empty open_basedir value that does not permit access to the target location, these calls to `is_executable()` throw warnings.

While Symfony may not raise exceptions for warnings in production environments, other frameworks (such as Laravel) do, in which case any of these checks causes a show-stopping 500 error.
@symfony-bot
Copy link
symfony-bot bot commented May 3, 2018

Thanks for your pull request! We love contributions.

However, this repository is what we call a "subtree split": a read-only copy of one directory of the main Symfony repository. It is used by Composer to allow developers to depend on specific Symfony components.

If you want to contribute, you should instead open a pull request on the main repository:

https://github.com/symfony/symfony

Thank you for your contribution!

PS: if you haven't already, please add tests, and beware that bug fixes should be submitted on the lowest maintained branch where they apply; only features should be submitted against the master branch.

@symfony-bot symfony-bot bot closed this May 3, 2018
@cbj4074 cbj4074 deleted the patch-2 branch May 3, 2018 17:18
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.

1 participant
0