php_nub_qq
php_nub_qq

Reputation: 16055

Disable track_vars from htaccess

I'm trying to disable php.ini directive track_vars from .htaccess. I use this command

php_flag track_vars 0

On the first line of my .htaccess file. I don't get any errors but when I open my index with this code inside

print_r($_COOKIE);

I get the $_COOKIE array. From the manual:

track_vars boolean

If enabled, then Environment, GET, POST, Cookie, and Server variables can be found in the global associative arrays $_ENV, $_GET, $_POST, $_COOKIE, and $_SERVER.

So what I want to do is NOT populate those arrays automatically. What am I doing wrong?

Upvotes: 1

Views: 493

Answers (1)

IMSoP
IMSoP

Reputation: 97938

If you read the line below the one you quoted on this manual page, you will see why this setting has no effect:

Note that as of PHP 4.0.3, track_vars is always turned on.

PHP 4.0.3 was released in October 2000. This setting will probably be removed from the manual soon, as it hasn't been relevant to anybody for a very long time.

Upvotes: 2

Related Questions