[wp-trac] [WordPress Trac] #33271: WP_Http streaming should use 'w' mode, not 'w+'

WordPress Trac noreply at wordpress.org
Wed Aug 5 08:43:52 UTC 2015


#33271: WP_Http streaming should use 'w' mode, not 'w+'
--------------------------+-----------------------------
 Reporter:  rmccue        |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  HTTP API      |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 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`.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/33271>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list