From:             [EMAIL PROTECTED]
Operating system: Linux 2.4.18
PHP version:      4.2.2
PHP Bug Type:     Session related
Bug description:  registered objects are not saved with the session

Hello,

This is partially taken from comments I made on someone else's bug report
#20449, as I don't know if it's the same or not.

Problem : When a session is saved, included objects are not.

I have setup a small test platform, with custom session handlers to a
database, and DBMS in debug mode.

When I force a session write before the end of the script, I get the
_whole_ session var serialized.

When I force a sess_write_close at the same place, I get a _truncated_
serialized session var (objects missing, but vars still there)

When I let things behave normally (not forcing write), I get a _truncated_
serialized session var (objects missing, vars present)

When I try to bypass arguments passed to my sess_write function by using
$PHPSESSID, and serialize($session), I get an error stating that $session
has been destroyed.

Thus, I have an hypothesis : The objects inside the session var are
destroyed _before_ the serialization occurs, leading to a truncated
result. 

regards,
-- 
Edit bug report at http://bugs.php.net/?id=20862&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=20862&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=20862&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=20862&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=20862&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=20862&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=20862&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=20862&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=20862&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=20862&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=20862&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20862&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=20862&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=20862&r=isapi

Reply via email to