-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[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
Conversation
pierredup
commented
Oct 2, 2015
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'), |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
2e93288
to
cc854e6
Compare
👍 |
For 2.3 the same would need to be applied in https://github.com/symfony/symfony/blob/2.3/src/Symfony/Component/Process/ProcessPipes.php#L52 |
…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
Thank you @pierredup. |
…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