#28749 [Opn->Bgs]: ob_start() incorrect warning message
| From: | vrana@php.net | Date: | Sat, 18 Sep 2004 18:40:14 +0000 |
| Subject: | #28749 [Opn->Bgs]: ob_start() incorrect warning message | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969364155@lists.php.net to get a copy of this message | ||
ID: 28749
Updated by: vrana@php.net
Reported By: php at nevyn dot net dot nospam
-Status: Open
+Status: Bogus
Bug Type: Documentation problem
PHP Version: 4.3.5
New Comment:
The problem is probably caused by something else because the error is
triggered _before_ call to ini_set.
Previous Comments:
------------------------------------------------------------------------
[2004-06-12 02:40:21] php at nevyn dot net dot nospam
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 this bug report at http://bugs.php.net/?id=28749&edit=1