#21953 [Opn->Fbk]: $_session looses type
| From: | sniper@php.net | Date: | Fri, 31 Jan 2003 10:35:08 +0000 |
| Subject: | #21953 [Opn->Fbk]: $_session looses type | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-31746@lists.php.net to get a copy of this message | ||
ID: 21953
Updated by: sniper@php.net
Reported By: wvdmark@computer.org
-Status: Open
+Status: Feedback
Bug Type: Session related
Operating System: linux
PHP Version: 4.3.0
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[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