Re: PHP 4.0 Bug #5363: problem with class and HTTP_COOKIE_VARS

From: Date: Mon, 03 Jul 2000 18:32:30 +0000
Subject: Re: PHP 4.0 Bug #5363: problem with class and HTTP_COOKIE_VARS
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-23349@lists.php.net to get a copy of this message
Hi jorge! On Tue, 04 Jul 2000, jorge@ctyd.com.mx wrote: > From: jorge@ctyd.com.mx > Operating system: Linux Red Hat 6.2 > PHP version: 4.0.0 > PHP Bug Type: Other > Bug description: problem with class and HTTP_COOKIE_VARS > > If i try to get the vaule of a cookie inside the class, the command > HTTP_COOKIE_VARS return "" but if the same command run outside the class > return the correct value > > Example > > Archivo userctl.inc > <? > > class userctl { > > function userctl() { + asset(get_cfg_var('track_vars')); + global $HTTP_COOKIE_VARS; > print $HTTP_COOKIE_VARS["ctl_user_cookie"]; // return "" > } > ?> and it should work ... -- teodor

« previous php.dev (#23349) next »