Bug #60326 [Asn->Csd]: ob_gzhander() removed
| From: | stas@php.net | Date: | Tue, 27 Dec 2011 08:13:59 +0000 |
| Subject: | Bug #60326 [Asn->Csd]: ob_gzhander() removed | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-166097@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
Updated by: stas@php.net
Reported by: stas@php.net
Summary: ob_gzhander() removed
-Status: Assigned
+Status: Closed
Type: Bug
Package: Output Control
Operating System: *
PHP Version: 5.4.0RC1
Assigned To: mike
Block user comment: N
Private report: N
New Comment:
This bug has been fixed in SVN.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
For Windows:
http://windows.php.net/snapshots/
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2011-12-27 02:38:50] pajoye@php.net
Automatic comment from SVN on behalf of pajoye
Revision: http://svn.php.net/viewvc/?view=revision&revision=321420
Log: - fix bug 60326, fix crash introduce by the fix
------------------------------------------------------------------------
[2011-12-26 22:52:47] pajoye@php.net
Automatic comment from SVN on behalf of pajoye
Revision: http://svn.php.net/viewvc/?view=revision&revision=321417
Log: - Fix bug #60326, fix crash introduced by initial fix
------------------------------------------------------------------------
[2011-11-20 16:29:13] nicolas dot grekas+php at gmail dot com
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
?>
------------------------------------------------------------------------
[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