#21953 [NEW]: $_session looses type

From: Date: Wed, 29 Jan 2003 21:34:37 +0000
Subject: #21953 [NEW]: $_session looses type
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-31629@lists.php.net to get a copy of this message
From: wvdmark@computer.org Operating system: linux PHP version: 4.3.0 PHP Bug Type: Session related Bug description: $_session looses type The following snippet: $bunch=10; $_SESSION['mail'] = (int)$_SESSION['mail'] + $bunch; only works with the (int) in front of $_session. Otherwise get "unsupported operand types" error. This is mysterious, Session control in PHP should preserve type. Typical Session file was as follows: mail|i:-1;Mail_title|s:4:"test";Mail_body|s:4:"test"; you see mail was of type i. -- Edit bug report at http://bugs.php.net/?id=21953&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=21953&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=21953&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=21953&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=21953&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=21953&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=21953&r=support Expected behavior: http://bugs.php.net/fix.php?id=21953&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=21953&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=21953&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=21953&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21953&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=21953&r=dst IIS Stability: http://bugs.php.net/fix.php?id=21953&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=21953&r=gnused

« previous php.bugs (#31629) next »