Opened 10 years ago
Closed 9 years ago
#33271 closed defect (bug) (invalid)
WP_Http streaming should use 'w' mode, not 'w+'
| Reported by: | | Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | normal | Version: | |
| Component: | HTTP API | Keywords: | needs-testing has-patch |
| Focuses: | Cc: |
Description
WP_Http currently tries to open the stream handle using w+. When you're using a stream wrapper that doesn't support w+, this can be problematic. :(
As far as I can tell, only w is actually needed, not w+. The only operations both the cURL and socket transports do is fopen, fwrite, fclose, which is well within the ability of w.
Attachments (1)
Change History (5)
Note: See TracTickets for help on using tickets.
Sounds sane.