Edit report at https://bugs.php.net/bug.php?id=60326&edit=1

 ID:                 60326
 Updated by:         s...@php.net
 Reported by:        s...@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] paj...@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] paj...@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] s...@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

Reply via email to