[wp-trac] [WordPress Trac] #18239: wp_ob_end_flush_all() hangs the output buffering, during plugin update/install

WordPress Trac wp-trac at lists.automattic.com
Mon Jul 16 08:21:54 UTC 2012


#18239: wp_ob_end_flush_all() hangs the output buffering, during plugin
update/install
-----------------------------+------------------------------
 Reporter:  mamborambo       |       Owner:
     Type:  defect (bug)     |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Upgrade/Install  |     Version:  3.2.1
 Severity:  minor            |  Resolution:
 Keywords:  output hangs     |
-----------------------------+------------------------------

Comment (by Tom Braider):

 Maybe some new informations.
 Flush zlib compressed buffer stops site creation at this point. So i don't
 flush it an the update site will show normal.
 Also chr(0) instead of [SPACE] don't work for me to fill the buffer.
 {{{
 function wp_ob_end_flush_all()
 {
     echo "\n<!--".str_repeat(' ', 4100)."-->\n";
     $levels = ob_get_level();
     for ( $i = 0; $i < $levels; $i++ )
     {
         $b = ob_get_status();
         if ( strpos($b['name'], 'zlib') === false )
         {
             @ob_end_flush();
             @ob_flush();
             @flush();
         }
     }
     @ob_start();
 }
 }}}

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


More information about the wp-trac mailing list