From: php at nevyn dot net dot nospam
Operating system:
PHP version: 4.3.5
PHP Bug Type: Documentation problem
Bug description: ob_start() incorrect warning message
Description:
------------
Hey,
I believe there is an incorrect (confusing) error message when
ini_set('url_rewriter.tags', 0); is used after ob_start("ob_gzhandler");
Laters,
Lukian.
Reproduce code:
---------------
<?php // header.php
if (!isset($_SESSION)) session_start();
include_once('/home/nevyn/public_html/xhtml.php');
ini_set('url_rewriter.tags', 0);
/* ... more code ... */
?>
<?php // xhtml.php
error_reporting(E_ALL);
if (@strstr($_SERVER['HTTP_ACCEPT_ENCODING'], "gzip"))
ob_start("ob_gzhandler");
/* ... more code ... */
?>
Expected result:
----------------
Warning: ob_start(): output handler 'ob_gzhandler' cannot be used if
'URL-Rewriter' has been executed after 'ob_gzhandler' was initialised in
(file) on line (number)
or similar..
possible advising the user that the correct ordering is:
ini_set('url_rewriter.tags', 0);
ob_start("ob_gzhandler");
Actual result:
--------------
Warning: ob_start(): output handler 'ob_gzhandler' cannot be used after
'URL-Rewriter' in /home/nevyn/public_html/xhtml.php on line 3
--
Edit bug report at http://bugs.php.net/?id=28749&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28749&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28749&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=28749&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=28749&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=28749&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=28749&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=28749&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=28749&r=support
Expected behavior: http://bugs.php.net/fix.php?id=28749&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=28749&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=28749&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=28749&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28749&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=28749&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=28749&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=28749&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28749&r=float