Re: [PHP] Sessions and register_long_arrays

2005-11-05 Thread Marcus Bointon

On 5 Nov 2005, at 00:25, Unknown Unknown wrote:

how do you reference the sessions? do you refrence them *with* the  
old arrays? because that would obviously be a problem


No, obviously that would be dumb! There is no mention of the old  
style HTTP_*_VARS arrays anywhere in my code. Smarty does use them by  
default, but I've turned that off. I'm also avoiding old-style  
session_register, only using current functions like session_start,  
session_name, session_destroy and putting everything in $_SESSION.


Someone pointed me at his bug:

http://bugs.php.net/bug.php?id=34542

I've been trying to come up with a small test case but no luck so far  
(so the bug remains with feedback status). xdebug is now working  
under 5.1RC5-dev but it doesn't trace quite how I thought it did. I  
suspect we might have more bug reports if more people were turning  
register_long_arrays off!


Marcus
--
Marcus Bointon
Synchromedia Limited: Putting you in the picture
[EMAIL PROTECTED] | http://www.synchromedia.co.uk

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Sessions and register_long_arrays

2005-11-04 Thread Unknown Unknown
how do you reference the sessions? do you refrence them *with* the old
arrays? because that would obviously be a problem


RE: [PHP] Sessions and register_long_arrays

2005-11-02 Thread Ford, Mike
-Original Message-
From: Marcus Bointon [mailto:[EMAIL PROTECTED] 
Sent: 29 October 2005 14:48

Strange behaviour that's taken me ages to track down. I have the  
situation where I can create a session, but any changes to it are not  
saved. session_write_close() didn't help. Eventually I tracked it  
down: if you have register_long_arrays disabled (as is the default in  
PHP5), this can happen.

Anyone else seen this? Any idea why it might be happening?

--

Have you seen http://bugs.php.net/bug.php?id=34542?

Cheers!

Mike
 


Mike Ford, Electronic Information Services Adviser, Learning Support
Services,
JG125, The Library, James Graham Building, Headingley Campus, Beckett
Park,
LEEDS, LS6 3QS, United Kingdom
Tel: +44 113 283 2600 extn 4730Fax: +44 113 283 3211


To view the terms under which this email is distributed, please go to 
http://disclaimer.leedsmet.ac.uk/email.htm

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Sessions and register_long_arrays

2005-10-29 Thread Marcus Bointon
Strange behaviour that's taken me ages to track down. I have the  
situation where I can create a session, but any changes to it are not  
saved. session_write_close() didn't help. Eventually I tracked it  
down: if you have register_long_arrays disabled (as is the default in  
PHP5), this can happen. Enabling it fixed the problem. A very simple  
test case didn't show this problem, so I guess something in my  
sessions has a dependency on HTTP_GET_VARS or similar, though these  
old-style vars do not appear anywhere in my code... Some of the  
libraries I'm using may use them (for example Smarty, though I have  
the request_use_auto_globals option enabled for that which should  
stop it using them), but nothing to do with them is stored in the  
session. If I look at a session file, it's all just scalars and  
arrays, no complex types at all, but changing an item in $_SESSION  
simply does not get saved back to the session file if  
register_long_arrays is enabled.


Anyone else seen this? Any idea why it might be happening?

Marcus
--
Marcus Bointon
Synchromedia Limited: Putting you in the picture
[EMAIL PROTECTED] | http://www.synchromedia.co.uk

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Sessions and register_long_arrays

2005-10-29 Thread Marcus Bointon

On 29 Oct 2005, at 14:48, Marcus Bointon wrote:

changing an item in $_SESSION simply does not get saved back to the  
session file if register_long_arrays is enabled.


I meant disabled.

I've also tried using it with the mm session save handler and I get  
the same symptoms. I also get identical results on OS X and Linux.


FYI, I want to disable this setting for increased performance,  
especially as I'm not using these old arrays anyway.


Marcus
--
Marcus Bointon
Synchromedia Limited: Putting you in the picture
[EMAIL PROTECTED] | http://www.synchromedia.co.uk

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php