note 69206 added to function.ob-gzhandler
| From: | spam_this at zleelz dot com | Date: | Sun, 27 Aug 2006 06:49:58 +0000 |
| Subject: | note 69206 added to function.ob-gzhandler | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-116378@lists.php.net to get a copy of this message | ||
When writing scripts for distribution, I would usually "null" out the following deprecated
superglobals so that users who uses the script will not be able to use them.
<?php
$HTTP_GET_VARS = null;
$HTTP_POST_VARS = null;
$HTTP_COOKIE_VARS = null;
$HTTP_POST_FILES = null;
$HTTP_SERVER_VARS = null;
?>
However, when using ob_start('ob_gzhandler'), one of those superglobals somehow disable
this function.
Found out that it was $HTTP_SERVER_VARS that's causing the problems.
<?php
ob_start('ob_gzhandler');
$HTTP_GET_VARS = null;
$HTTP_POST_VARS = null;
$HTTP_COOKIE_VARS = null;
$HTTP_POST_FILES = null;
/**
* Causing the trouble
*/
//$HTTP_SERVER_VARS = null;
?>
I don't know why it does that, but I just want to point that out.
----
Server IP: 216.194.113.175
Probable Submitter: 67.10.71.245
----
X-Spam-Status: No, hits=3.8 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER,
UPPERCASE_25_50 autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.ob-gzhandler.php
Edit -- https://master.php.net/note/edit/69206
Del: integrated -- https://master.php.net/note/delete/69206/integrated
Del: useless -- https://master.php.net/note/delete/69206/useless
Del: bad code -- https://master.php.net/note/delete/69206/bad+code
Del: spam -- https://master.php.net/note/delete/69206/spam
Del: non-english -- https://master.php.net/note/delete/69206/non-english
Del: in docs -- https://master.php.net/note/delete/69206/in+docs
Del: other reasons-- https://master.php.net/note/delete/69206
Reject -- https://master.php.net/note/reject/69206
Search -- https://master.php.net/manage/user-notes.php