-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
fix fopen flags #28377
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
fix fopen flags #28377
Conversation
SpacePossum
commented
Sep 6, 2018
Q | A |
---|---|
Branch? | 2.7 |
Bug fix? | yes |
New feature? | no |
BC breaks? | no |
Deprecations? | no |
Tests pass? | yes |
Fixed tickets | none |
License | MIT |
Doc PR | none |
@@ -1413,8 +1413,8 @@ private function resetProcessData() | |||
$this->exitcode = null; | |||
$this->fallbackStatus = array(); | |||
$this->processInformation = null; | |||
$this->stdout = fopen('php://temp/maxmemory:'.(1024 * 1024), 'wb+'); |
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.
wb+
is not valid
@@ -28,7 +28,7 @@ class CsvFileDumper extends FileDumper | |||
*/ | |||
public function format(MessageCatalogue $messages, $domain = 'messages') | |||
{ | |||
$handle = fopen('php://memory', 'rb+'); |
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.
rb+
is not valid
Hello, can you rebase+retarget on 2.8 please, and also keep only the fixed modes? |
c81b923
to
ae59908
Compare
sure thing @nicolas-grekas 👍 |
Thank you @SpacePossum. |
This PR was merged into the 2.8 branch. Discussion ---------- fix fopen flags | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | none | License | MIT | Doc PR | none <!-- Fixes the flags/mode used with `fopen` --> Commits ------- 6d155ed fix fopen calls