From:             [EMAIL PROTECTED]
Operating system: RedHat Linux 7.x
PHP version:      4.2.3
PHP Bug Type:     Session related
Bug description:  Boolean worked, but Integer..?

Hey,

I`m using the $_SESSION array at all my session stuff,
Now is the first time at the actual script that i need to store a integer
in the session.

I did this:

$_SESSION[uid] = $result[uid];

echo $result[uid];
echo $_SESSION[uid];

Both returned "18".

Now as I tried to echo the var again, It outputs "8212".

I`ve tried to find any error at my script (maybe an access or change to
the $_SESSION[uid] field...but nothing found).

Maybe this is a bug?

I`m a little bit confused now, because $_SESSION array should be used at
best, and It doesn`t work :-(

BTW, The fieldtype in the mysql db is 'TINYINT'

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

Reply via email to