ID: 10732
User Update by: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Closed
Bug Type: *Session related
Operating system: Linux
PHP Version: 4.0.5
Description: Storage of session variable fails

Not only could I not reproduce this locally from the snapshot of 4.0.6, but I couldn't 
from a local 4.0.5. But the problem was definitely happening on my web hosting 
company, which just recently had upgraded to 4.0.5... finally, I did a 
session_destroy() at the end of the previous test, and on refresh, everything worked 
fine.

Is the 4.0.5 serialized/session format subtley different from the 4.0.4 format? Seems 
to from this result. In any case, it does not appear to be a bug in the CODE, though 
it may be a "lack of documentation of a change that'll cause hair-pulling" bug. :) 
Safe to close I think.

Previous Comments:
---------------------------------------------------------------------------

[2001-05-08 10:52:40] [EMAIL PROTECTED]
I could not verify this withphp 4.0.6dev, can you try the lastest snapshot from 
snaps.php.net?

This was my test:
[root@aarde mp3]# php
<?php
session_register('user');

$user['UserName'] = "this is  a test";
print $user['UserName'];
?>

X-Powered-By: PHP/4.0.6-dev
Set-Cookie: PHPSESSID=435a120c6d20caee178fff903259557d; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-type: text/html

this is  a test

---------------------------------------------------------------------------

[2001-05-08 10:47:01] [EMAIL PROTECTED]
Previously, doing:

<?php
session_register('user');

$user['UserName'] = "this is  a test";
print $user['UserName'];
?>

would result in the browser displaying:

this is a test

In PHP 4.0.5, the browser displays:

t

Which is not quite the expected result.

---------------------------------------------------------------------------


Full Bug description available at: http://bugs.php.net/?id=10732


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to