Skip to content

[2.5][Process] Do not redirect output to file handles when output is disabled, simply discard it #11121

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

Merged
merged 1 commit into from
Jun 16, 2014

Conversation

romainneutron
Copy link
Contributor

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets n/a
License MIT

@romainneutron romainneutron changed the title [Process] Do not redirect output to file handles when output is disabled, simply discard it [2.5][Process] Do not redirect output to file handles when output is disabled, simply discard it Jun 14, 2014
@romainneutron
Copy link
Contributor Author

Please note that this patch oly affect windows users

@@ -107,13 +110,11 @@ public function closeUnixPipes()
/**
* Returns an array of descriptors for the use of proc_open.
*
* @param bool $disableOutput Whether to redirect STDOUT and STDERR to /dev/null or not.
Copy link
Contributor

Choose a reason for hiding this comment

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

bc break?!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ProcessPipes are not supposed to be used by anybody. This is actually a private part of Process. I understand this is a bc break in a strict consideration, but I do not consider it breaking anything for people.

For the record, I propose to break BC in this class here again https://github.com/symfony/symfony/pull/10934/files

Should I really provide BC for this one? What other people think?

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm just saying it's a bc break. But I'm still ok with it. IMO we should allow minor bc breaks esp. in an "internal" class. Otherwise we strongly slow down further development.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Then we agree :)

@stof
Copy link
Member

stof commented Jun 16, 2014

👍

1 similar comment
@Tobion
Copy link
Contributor

Tobion commented Jun 16, 2014

👍

@fabpot
Copy link
Member

fabpot commented Jun 16, 2014

Thank you @romainneutron.

@fabpot fabpot merged commit b35250f into symfony:2.5 Jun 16, 2014
fabpot added a commit that referenced this pull request Jun 16, 2014
… output is disabled, simply discard it (romainneutron)

This PR was merged into the 2.5 branch.

Discussion
----------

[2.5][Process] Do not redirect output to file handles when output is disabled, simply discard it

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | n/a
| License       | MIT

Commits
-------

b35250f [Process] Do not redirect output to file handles when output is disabled
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants