ID: 21953 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -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] [EMAIL PROTECTED] Sorry this is bogus. I don't know what happened, but now it works as expected. ------------------------------------------------------------------------ [2003-01-31 04:35:07] [EMAIL PROTECTED] 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] [EMAIL PROTECTED] 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