[wp-trac] [WordPress Trac] #13915: WP_Http_Fopen is PHP4 only

WordPress Trac wp-trac at lists.automattic.com
Sat Jul 17 21:47:04 UTC 2010


#13915: WP_Http_Fopen is PHP4 only
-------------------------+--------------------------------------------------
 Reporter:  jacobsantos  |       Owner:  jacobsantos     
     Type:  enhancement  |      Status:  accepted        
 Priority:  normal       |   Milestone:  Future Release  
Component:  HTTP         |     Version:  3.0             
 Severity:  trivial      |    Keywords:  has-patch tested
-------------------------+--------------------------------------------------
Changes (by jacobsantos):

  * keywords:  has-patch tested (are you sure?) => has-patch tested


Comment:

 The WP_Http_Fopen class was written to enable fopen support for PHP4. PHP5
 added support for Streams and the WP_Http_Streams class uses the streams
 method when using fopen on PHP5+. The problem is that this class is in
 rare cases being used on PHP5 setups where WP_Http_Streams is failing
 (because of SSL or another reason) and the WP_Http_Fopen is passing. The
 goal was to allow fsockopen to be used if at all possible on PHP5 when
 fopen is not available and hope that fsockopen is still available.

 I have to confess I did not follow the discussion with BuddyPress or WPMU,
 as neither of those really have anything to do with this ticket. I don't
 know the specifics of the issues that were discussed but with my limited
 information, I don't believe they are relevant to this ticket.

 If you have more information, on that, I would like to see.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/13915#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list