Skip to content

[Process] Throw exception if tempnam returns false #16092

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
Oct 4, 2015

Conversation

pierredup
Copy link
Contributor

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #15215
License MIT
Doc PR

@@ -52,8 +52,7 @@ public function __construct($disableOutput, $input)
Process::STDERR => tempnam(sys_get_temp_dir(), 'sf_proc_stderr'),
Copy link
Contributor

Choose a reason for hiding this comment

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

prefix
The prefix of the generated temporary filename.
Note: Windows uses only the first three characters of prefix.

So the prefix would be the same for stdout and stderr on windows, which defeats the purpose. I propose to change the prefix to be different, e.g. out and err

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've changed this to use out_sf_proc and err_sf_proc as the prefix

@Tobion
Copy link
Contributor

Tobion commented Oct 3, 2015

👍
Status: reviewed

@Tobion
Copy link
Contributor

Tobion commented Oct 3, 2015

@pierredup
Copy link
Contributor Author

Thanks @Tobion, I have created a new PR for 2.3 here: #16111

Tobion added a commit that referenced this pull request Oct 4, 2015
…pierredup)

This PR was merged into the 2.3 branch.

Discussion
----------

Throw exception if tempnam returns false in ProcessPipes

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #15215
| License       | MIT
| Doc PR        |

Related to #16092

Commits
-------

1425b8a Throw exception if tempnam returns false in ProcessPipes
@Tobion
Copy link
Contributor

Tobion commented Oct 4, 2015

Thank you @pierredup.

@Tobion Tobion merged commit cc854e6 into symfony:2.7 Oct 4, 2015
Tobion added a commit that referenced this pull request Oct 4, 2015
…dup)

This PR was merged into the 2.7 branch.

Discussion
----------

[Process] Throw exception if tempnam returns false

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #15215
| License       | MIT
| Doc PR        |

Commits
-------

cc854e6 Throw exception if tempnam returns false
@fabpot fabpot mentioned this pull request Oct 27, 2015
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.

3 participants