Re: Bug #13753 Updated: failed session_register in object method

From: Date: Fri, 19 Oct 2001 14:39:17 +0000
Subject: Re: Bug #13753 Updated: failed session_register in object method
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-68401@lists.php.net to get a copy of this message
Witam konto Friday, October 19, 2001, 4:14:11 PM, przeczytałem: BD> ID: 13753 BD> Updated by: hholzgra BD> Reported By: m.izydorski@rubikon.pl BD> Old Status: Open BD> Status: Bogus BD> Bug Type: Session related BD> Operating System: linux mandrake 8.0 BD> PHP Version: 4.0.6 BD> New Comment: BD> $edf1 is local to the gg() method BD> you can only register variables from the global BD> scope, so $edf1 is empty in the session as no BD> such global variable existed as the session data BD> was written BD> Previous Comments: BD> ------------------------------------------------------------------------ BD> [2001-10-19 09:55:30] m.izydorski@rubikon.pl BD> misspeled; should be: BD> After that both session_is_registered('edf1') and BD> session_is_registered('edf2') returns true BD> ------------------------------------------------------------------------ BD> [2001-10-19 09:50:59] m.izydorski@rubikon.pl BD> I have made much tests and it seems, that calling session register in object's method BD> failed. Assume: BD> <? BD> (...)[session_start, headers, etc...] BD> $edf2 = 1234; BD> session_register('edf2'); BD> class gg { BD> function gg() { BD> $edf1 = 65432; BD> session_register('edf1'); BD> } BD> } BD> gg::gg(); ?>> BD> After that both session_is_registered('edf1') and BD> session_is_registered('edf1') returns true, but ($edf1 BD> == $edf2) return false; ($edf1 == '') - is true. BD> Any suggestions? BD> ------------------------------------------------------------------------ BD> ATTENTION! Do NOT reply to this email! BD> To reply, use the web interface found at BD> http://bugs.php.net/?id=13753&edit=2 Ok, sorry, but why session_is_registered returns true? And btw, which list/news you can recomend me, that I can get help such as this as soon, as possible? -- Pozdrawiam, Michal mailto:m.izydorski@rubikon.pl

« previous php.dev (#68401) next »