From:             axel dot starck at contec dot ca
Operating system: Linux RedHat 8, 2.4.20-20.8cus 
PHP version:      5.3.0alpha2
PHP Bug Type:     Session related
Bug description:  wrong session id passed to read handler

Description:
------------
we have our own db base session handler.
it looks like with v5.3.0 the session id passed to the read handler is not
not the one passed as parameter to the script.
the code is in production for years. switching back to v5.2.6
solves the problem. see code/trace snipped below


Reproduce code:
---------------
error_log ("-1-".$_SERVER["REQUEST_URI"]."--".print_r ($_REQUEST,
true)."--");
....
function sess_read ($id)
{
  error_log ("--sess_read (id=$id)--");
  ...................
}
.........
session_set_save_handler ('sess_open', 'sess_close', 'sess_read',
'sess_write', 'sess_destroy', 'sess_gc');

if (session_start ()) error_log ("session_start:GOOD");
else                  error_log ("session_start:BAAD");
error_log ("-2-SID:".SID."--".print_r ($_SESSION, true)."--");

-----------------------------------------------------------------------------
[07-Oct-2008 16:29:53]
-1-/projects/svn/ui/base/index.php?HORNET=d72592f9adf5b04c74bb269a799aef53--Array
(
    [HORNET] => d72592f9adf5b04c74bb269a799aef53
)
--
[07-Oct-2008 16:29:53] --sess_read
(id=22cf7b3c5d839f71bc5ae12e608c1675)--
[07-Oct-2008 16:29:53] session_start:GOOD
[07-Oct-2008 16:29:53]
-2-SID:HORNET=22cf7b3c5d839f71bc5ae12e608c1675--Array
(
)
--



-- 
Edit bug report at http://bugs.php.net/?id=46250&edit=1
-- 
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=46250&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=46250&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=46250&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=46250&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=46250&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=46250&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=46250&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=46250&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=46250&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=46250&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=46250&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=46250&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=46250&r=globals
PHP 4 support discontinued:   http://bugs.php.net/fix.php?id=46250&r=php4
Daylight Savings:             http://bugs.php.net/fix.php?id=46250&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=46250&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=46250&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=46250&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=46250&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=46250&r=mysqlcfg

Reply via email to