#21953 [Fbk->Csd]: $_session looses type

From: Date: Fri, 31 Jan 2003 21:09:09 +0000
Subject: #21953 [Fbk->Csd]: $_session looses type
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-31806@lists.php.net to get a copy of this message
ID: 21953 User updated by: wvdmark@computer.org Reported By: wvdmark@computer.org -Status: Feedback +Status: Closed Bug Type: Session related Operating System: linux PHP Version: 4.3.0 New Comment: Sorry this is bogus. I don't know what happened, but now it works as expected. Previous Comments: ------------------------------------------------------------------------ [2003-01-31 04:35:07] sniper@php.net Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to "Open". Thank you for your interest in PHP. ------------------------------------------------------------------------ [2003-01-29 15:34:37] wvdmark@computer.org 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 this bug report at http://bugs.php.net/?id=21953&edit=1

« previous php.bugs (#31806) next »