#20700 [Opn]: Boolean worked, but Integer..?

From: Date: Thu, 28 Nov 2002 15:28:05 +0000
Subject: #20700 [Opn]: Boolean worked, but Integer..?
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-26104@lists.php.net to get a copy of this message
ID: 20700 User updated by: admin@doomedia.de Reported By: admin@doomedia.de Status: Open Bug Type: Session related Operating System: RedHat Linux 7.x PHP Version: 4.2.3 New Comment: Update: By the way...the entry in the database is "12", not 18, and not 8212...hmm Previous Comments: ------------------------------------------------------------------------ [2002-11-28 09:26:29] admin@doomedia.de 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 this bug report at http://bugs.php.net/?id=20700&edit=1

« previous php.bugs (#26104) next »