WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #22430, comment 10


Ignore:
Timestamp:
08/16/2019 05:02:20 PM (2 years ago)
Author:
bobbingwide
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #22430, comment 10

    initial v1  
    11I've recently noticed this where my hosting ( TSOhost ) have switched to PHP 7.3 and have set `zlib.output_compression=on` by default, and where my sites have WP_DEBUG true.
    22
    3 Is it not possible to detect the PHP ini setting and not attach the `wp_ob_end_flush_all` filter function to `shutdown` when it's set?
     3Is it not possible to detect the PHP ini setting and not attach the `wp_ob_end_flush_all` action function to `shutdown` when it's set?
     4
     5Or alter the function to do nothing. e.g.
     6{{{
     7if ( ini_get( 'zlib.output_compression') ) {
     8  return;
     9}
     10}}}