Re: [PHP-DEV] Sessions, session_register()

2002-12-17 Thread Sascha Schumann
On Tue, 17 Dec 2002, John Coggeshall wrote: Can someone enlighten me as to why session_register() and $_SESSION shouldn't be used togeather? It seems to me the session_register() function(s) should just be working with $_SESSION anyway... Are they doing something different? Is this desired

RE: [PHP-DEV] Sessions, session_register()

2002-12-17 Thread John Coggeshall
Where did you find that recommendation? http://www.php.net/manual/en/function.session-register.php Read the note :) I thought it was kind of strange myself... If this is changed in 4.3 I will update the docs to reflect this, but I wanted to see what everyone had to say about it first. John

Re: [PHP-DEV] Sessions, session_register()

2002-12-17 Thread Andrey Hristov
- Original Message - From: Sascha Schumann [EMAIL PROTECTED] To: Andrey Hristov [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, December 17, 2002 11:02 AM Subject: Re: [PHP-DEV] Sessions, session_register() Isn't that an error that 4.2.3 throws when session_register() is used

RE: [PHP-DEV] Sessions, session_register()

2002-12-17 Thread John Coggeshall
php_error(E_WARNING, Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this

Re: [PHP-DEV] Sessions, session_register()

2002-12-17 Thread Sascha Schumann
Isn't that an error that 4.2.3 throws when session_register() is used as well as registering directly in $_SESSION? So the message is not easily comprehensible, I suppose. There is no problem when you have register_globals enabled and you mix session_register and use of

RE: [PHP-DEV] Sessions, session_register()

2002-12-17 Thread John Coggeshall
The problem stems from the fact that some users have been (ab)using session_register when register_globals is off. session_register is only supposed to be used for the register_globals=on case. Those functions need to be updated in the manual then to reflect this change. If I say