[wp-trac] [WordPress Trac] #22239: wp_ob_end_flush_all() tries to destroy non-destroyable output buffers

WordPress Trac noreply at wordpress.org
Wed Feb 7 20:08:18 UTC 2024


#22239: wp_ob_end_flush_all() tries to destroy non-destroyable output buffers
-------------------------------------+-----------------------------
 Reporter:  dd32                     |       Owner:  (none)
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  Future Release
Component:  Bootstrap/Load           |     Version:  trunk
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:
-------------------------------------+-----------------------------

Comment (by kkmuffme):

 Multiple possible scenarios. I guess the easiest is to just turn on
 zlib.output_compression in the ini.

 Without server modification, I guess this should work too (would give a
 notice in current case, but notice is fixed with the PR):

 advanced-cache.php

 {{{#!php
 <?php
 function my_ob_cb( $output ) {
     return $output;
 }

 ob_start( 'my_ob_cb', 0, 0 );
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/22239#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list