#21953 [Csd->Bgs]: $_session looses type
| From: | sniper@php.net | Date: | Sat, 01 Feb 2003 00:41:36 +0000 |
| Subject: | #21953 [Csd->Bgs]: $_session looses type | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-31821@lists.php.net to get a copy of this message | ||
ID: 21953
Updated by: sniper@php.net
Reported By: wvdmark@computer.org
-Status: Closed
+Status: Bogus
Bug Type: Session related
Operating System: linux
PHP Version: 4.3.0
New Comment:
as you wish.
Previous Comments:
------------------------------------------------------------------------
[2003-01-31 15:09:09] wvdmark@computer.org
Sorry this is bogus.
I don't know what happened, but now it works as expected.
------------------------------------------------------------------------
[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