#36525 [Bgs]: ob_gzhandler - issue
| From: | mike@php.net | Date: | Sat, 25 Feb 2006 19:28:12 +0000 |
| Subject: | #36525 [Bgs]: ob_gzhandler - issue | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-93665@lists.php.net to get a copy of this message | ||
ID: 36525
Updated by: mike@php.net
Reported By: lunter at interia dot pl
Status: Bogus
Bug Type: Output Control
Operating System: winXP
PHP Version: 5.1.2
New Comment:
Because you call strtolower() on the string. The "a" output buffer
handler is run without regard whether browser supports gzip content
encoding.
Previous Comments:
------------------------------------------------------------------------
[2006-02-25 20:10:14] lunter at interia dot pl
mike, do you know why function a return lower case string when browser
does't support gzip/deflate compression ???
------------------------------------------------------------------------
[2006-02-25 16:10:59] mike@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
------------------------------------------------------------------------
[2006-02-25 10:22:45] lunter at interia dot pl
Description:
------------
ob_gzhandler does't return $i parametr when browser does't support
gzip/deflate compression
Reproduce code:
---------------
<?
function a($i,$m){
$i=strtolower($i);
$i=ob_gzhandler($i,$m);
return($i);
}
ob_start('a');
?>
PAGE CONTENTS
Expected result:
----------------
send buffer in lower case
Actual result:
--------------
send buffer in UPPER case when browser does't support gzip/deflate
compression
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=36525&edit=1