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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 20:01:45 2024 UTC