Opened 19 years ago
Closed 18 years ago
#4342 closed defect (bug) (fixed)
gzhandler warning
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 2.5 | Priority: | normal |
| Severity: | normal | Version: | 2.2 |
| Component: | Optimization | Keywords: | has-patch commit |
| Focuses: | Cc: |
Description
Sometimes I can see a warning in the upper side like this:
Warning: ob_start(): output handler 'ob_gzhandler' cannot be used after 'URL-Rewriter related to file functions.php
I found a patch using:
if ( extension_loaded('zlib') )
{
ob_end_clean();
ob_start('ob_gzhandler');
}
}
instead of
if ( extension_loaded('zlib') )
{
ob_start('ob_gzhandler');
}
}
It seems to work
Attachments (1)
Change History (13)
#4
@
18 years ago
It is possible to check as to whether another output buffer had started?
Oh, ob_end_clean() probably shouldn't be used if another buffer had started. Unless you wish to discard the contents.
#5
@
18 years ago
- Keywords has-patch needs-testing added
Needs testing (unit testing) on whether or not an notice is thrown if there is no output buffer active when ob_clean_flush() is called.
#9
@
18 years ago
Let's just get rid of gzip_compression(). It's caused too many problems for such a small bit of code.
Note: See
TracTickets for help on using
tickets.
Makes sense. Possibly another output buffer had started.