php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20700 Boolean worked, but Integer..?
Submitted: 2002-11-28 09:26 UTC Modified: 2002-11-29 00:50 UTC
From: admin at doomedia dot de Assigned:
Status: Not a bug Package: Session related
PHP Version: 4.2.3 OS: RedHat Linux 7.x
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: admin at doomedia dot de
New email:
PHP Version: OS:

 

 [2002-11-28 09:26 UTC] admin at doomedia dot 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?

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-11-28 09:28 UTC] admin at doomedia dot de
Update: By the way...the entry in the database is "12", not 18, and not 8212...hmm
 [2002-11-29 00:50 UTC] sniper@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Jul 12 13:01:33 2025 UTC