[wp-trac] [WordPress Trac] #11831: Warning when wp-cron fails

WordPress Trac wp-trac at lists.automattic.com
Wed Jun 9 19:09:19 UTC 2010


#11831: Warning when wp-cron fails
------------------------------+---------------------------------------------
 Reporter:  scribu            |        Owner:  westi   
     Type:  defect (bug)      |       Status:  reopened
 Priority:  normal            |    Milestone:          
Component:  Warnings/Notices  |      Version:  3.0     
 Severity:  normal            |   Resolution:          
 Keywords:                    |  
------------------------------+---------------------------------------------

Comment(by eliotsykes):

 Tried out a couple more things, narrowed it down to a problem with
 Streams.

 In class-http.php, if I force WP_Http_Fopen to be used instead of
 WP_Http_Streams then the error message does not happen.

 So the bug happens when fopen is called with a Streams context.

 This boils down to the difference between these two lines:


 {{{
 $handle = fopen($url, 'r'); // Works! About line 860 in class-http.php
 ...
 $handle = fopen($url, 'r', false, $context); // Bug! Line 1045 class-
 http.php
 }}}

 I'm using PHP version 5.2.6-3 and allow_url_fopen is true. Apache version
 is 2.2.11.

 So my guess is that the array options given to create the $context
 variable is causing problems. Perhaps playing with these options might
 yield some results for someone who has more experience with PHP streams,
 for now I'm going to live with this issue.

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


More information about the wp-trac mailing list