Bug #60326 [Com]: ob_gzhander() removed

From: Date: Sun, 20 Nov 2011 16:29:14 +0000
Subject: Bug #60326 [Com]: ob_gzhander() removed
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-165378@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=60326&edit=1 ID: 60326 Comment by: nicolas dot grekas+php at gmail dot com Reported by: stas@php.net Summary: ob_gzhander() removed Status: Assigned Type: Bug Package: Output Control Operating System: * PHP Version: 5.4.0RC1 Assigned To: mike Block user comment: N Private report: N New Comment: Same for ob_tidyhandler and ob_iconv_handler. Found doing a grep php_output_handler_alias_register on source. If that is considered correct behavior, which I'm personally fine with (but theoretically breaks backward compat), then there is one inconsistency with current implementation : ob aliases have higher precedence than userland function. That is edge case of course. Consider: <?php function ob_iconv_handler($b) { return $b . 'def'; } ob_start('ob_iconv_handler'); // as I tested: this register the internal alias, not the above function ?> Previous Comments: ------------------------------------------------------------------------ [2011-11-19 10:10:15] nicolas dot grekas+php at gmail dot com The attached patch is by mike. ------------------------------------------------------------------------ [2011-11-18 07:17:48] stas@php.net Description: ------------ ob_gzhandler() function was removed by new output buffering code, but some scripts still use it. It would be nice to restore it back if possible. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=60326&edit=1

« previous php.bugs (#165378) next »