From:             Reiner dot Proels at laposte dot net
Operating system: FreeBSD 4.8-RELEASE-p3 #1
PHP version:      4.3.3
PHP Bug Type:     Session related
Bug description:  $_SESSION has strange behaviour on some OS

Description:
------------
$_SESSION variables are sometimes overwritten on FreeBSD


Reproduce code:
---------------
        session_start();

        print_r($_SESSION);
        
        $kdnr = 1;
        if (isset($_SESSION['kdnr']))
                $kdnr = $_SESSION['kdnr'];
        
        print_r($_SESSION);

the variable $_SESSION['kdnr'] was set in an other script to "123"



Expected result:
----------------
Output under Windows with IIS

Array ( [kdnr] => 123 ) Array ( [kdnr] => 123 ) 

OK.

on the server of my provider there is FreeBSD running
the output looks like this:

Array ( [kdnr] => 123 ) Array ( [kdnr] => 1 ) 

so the $kdnr = 1 line has overwritten the session variable!


-- 
Edit bug report at http://bugs.php.net/?id=25940&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=25940&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=25940&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=25940&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=25940&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=25940&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=25940&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=25940&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=25940&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=25940&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=25940&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=25940&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25940&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=25940&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=25940&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=25940&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=25940&r=float

Reply via email to