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

[Process] Inherit env vars by default in PhpProcess#16288

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
Tobion merged 1 commit intosymfony:2.3fromnicolas-grekas:env-php
Oct 23, 2015

Conversation

@nicolas-grekas
Copy link
Member

QA
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets-
LicenseMIT
Doc PR-

This is the cause of our failures on Windows, where the SYSTEMROOT env var is mandatory for mcrypt_create_iv to work.
I don't know why the browserkit client is run with no env inheritance and this looks like a bug.
Same for PhpProcess emptying the env by default, this looks like a bug, esp. since the parentProcess class defaults to inheriting the env.
Tests are not broken by this change.

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

this is strictly equivalent

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

not related but still worth cleaning:get_declared_traits is not used after this check;ReflectionClass::getTraits is.

@nicolas-grekas
Copy link
MemberAuthor

Seeparagonie/random_compat#68 andhttps://bugs.php.net/70742 for reasons why this is important.

@paragonie-scott
Copy link

@stof
Copy link
Member

@paragonie-scott this is a version issue for the inter-package dependencies

@nicolas-grekasnicolas-grekasforce-pushed theenv-php branch 3 times, most recently from495f77a to0852e66CompareOctober 20, 2015 07:43
Copy link
Member

Choose a reason for hiding this comment

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

We should really start to use the caret operator.

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

someone should open a PR :)

Copy link
Member

Choose a reason for hiding this comment

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

Don't we need to keep the TMPDIR/TEMPDIR? We need to see when and why it was added, but I suppose it was there for a reason.

Copy link
Member

Choose a reason for hiding this comment

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

@fabpot I guess it is because the environment was not inherited by default, and so we forced inheriting part of it.

Copy link
Member

Choose a reason for hiding this comment

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

Yes, this seemed to be the reason (see1cec45c and#1785).

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

yep, this was just a workaround against a bug fixed a few lines below (PhpProcess defaulting to not inheriting the env)

@nicolas-grekasnicolas-grekas changed the title[Process] Inherit env vars by default[Process] Inherit env vars by default in PhpProcessOct 20, 2015
@xabbuh
Copy link
Member

👍

@xabbuh
Copy link
Member

Status: Reviewed

@Tobion
Copy link
Contributor

👍

@Tobion
Copy link
Contributor

Thank you@nicolas-grekas.

@TobionTobion merged commitab8cc29 intosymfony:2.3Oct 23, 2015
Tobion added a commit that referenced this pull requestOct 23, 2015
…as-grekas)This PR was merged into the 2.3 branch.Discussion----------[Process] Inherit env vars by default in PhpProcess| Q             | A| ------------- | ---| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets | -| License       | MIT| Doc PR        | -This is the cause of our failures on Windows, where the SYSTEMROOT env var is mandatory for mcrypt_create_iv to work.I don't know why the browserkit client is run with no env inheritance and this looks like a bug.Same for PhpProcess emptying the env by default, this looks like a bug, esp. since the parent `Process` class defaults to inheriting the env.Tests are not broken by this change.Commits-------ab8cc29 [Process] Inherit env vars by default in PhpProcess
@nicolas-grekasnicolas-grekas deleted the env-php branchOctober 23, 2015 12:30
This was referencedOct 27, 2015
@fabpotfabpot mentioned this pull requestOct 27, 2015
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

7 participants

@nicolas-grekas@paragonie-scott@stof@xabbuh@Tobion@fabpot@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp