|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-01-11 10:06 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 03:00:01 2025 UTC |
Description: ------------ If there are some outputs on the functions called by `register_shutdown_function`, the `ob_gzhandler` do not work correctly for these outputs messages. In other words, these messages have not been compressed with the other outpus msg. It is serious problem for the Web Browsers, because they will get the error check sum of contents, so the page content can't not be display fullly. Reproduce code: --------------- <?php function foo() { echo "Hello, foo bar before process quit!\n"; } ob_start('ob_gzhandler'); register_shutdown_function('foo'); echo "Normal output\n"; ?> Expected result: ---------------- The output of function `foo` will be added to all output msg and compressed by ob_gzhandler Actual result: -------------- "Normal output\n" were compressed, and the ouput of `foo()` never been compressed.