go to bug id or search bugs for
I am using PHP 403pl1 with Apache 1.3.14. Everything works great except for $HTTP_COOKIE_VARS. It never returns a value. I can retrieve the value via $GLOBALS but I would prefer to stick with $HTTP_COOKIE_VARS. This worked fine until I installed 403pl1 :)
I would be glad to supply more info if needed.
Add a Patch
Add a Pull Request
$HTTP_COOKIE_VARS is working just fine for me.
Please add some example code in which it doesn't work right.
Globally-scoped variables are not imported into the namespace of a class by default. Globally-scoped variable must be imported into local scopes (like class and function definitions) using the globals keyword.
This is not a bug - it is simply the way that the language works.
At 03:05 PM 12/1/00 -0600, you wrote:
> I have more details. The problem only occurs within a
> Class method. To correct the problem I used:
> global $HTTP_COOKIE_VARS;
> It is my understanding that $HTTP_COOKIE_VARS should
> already be global as is $HTTP_SERVER_VARS etc...
> Sam Beckwith