|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-09-18 20:40 UTC] vrana@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 18:00:01 2025 UTC |
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