[wp-trac] [WordPress Trac] #14425: fetch_feed fatal memory error

WordPress Trac wp-trac at lists.automattic.com
Mon Jul 26 23:35:53 UTC 2010


#14425: fetch_feed fatal memory error
--------------------------+-------------------------------------------------
 Reporter:  dangayle      |       Owner:                 
     Type:  defect (bug)  |      Status:  new            
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:  3.0            
 Severity:  normal        |    Keywords:  fetch_feed     
--------------------------+-------------------------------------------------
 If you put too large of a feed into the function fetch_feed() a memory
 error will occur, flushing everything in the buffer, and WP will exit with
 a fatal error.

 Increasing the WP_MEMORY_LIMIT fixes the problem, but ideally, shouldn't
 the feed be buffered away from WP, so that whoever controls the provider
 end of the feed doesn't have the power to cripple your blog? Parsing any
 large XML document like this as a document tree has a tendency to run into
 memory allocation errors, RSS being no exception.

 The example warning given when wp_debug is true:

 Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to
 allocate 1158121 bytes) in /home/www/public_html/wp-includes/wp-db.php on
 line 478

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/14425>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list