From: Operating system: Windows 7 64bit PHP version: 5.3.10 Package: Session related Bug Type: Bug Bug description:$_SESSION['abfrage']++
Description: ------------ --- >From manual page: http://www.php.net/reserved.variables.session --- Everytime I reload my page the SESSION Variable increases by 2 instead of 1. register_globals is turned off! No changes made in php.ini Modules mysql and other PHP Version 3.5.1 (I'm too stupid to update) I expect: 1. I'm too stupid 2. 64-bit CPU running a 32-bit Programm 3. Script is loaded twice somehow Test script: --------------- // First test script in test2.php session_start(); if(isset($_SESSION['views'])) $_SESSION['views']=$_SESSION['views']+1; else $_SESSION['views']=1; echo "Views=". $_SESSION['views']; // Second test script in test2.php session_start(); $_SESSION['views']=$_SESSION['views']+2; echo "Views=". $_SESSION['views']; Expected result: ---------------- 1 at first load 2 at second load 3 ... 4 ... 2 at first load 4 at second load 8 ... 12 ... Actual result: -------------- 1 at first load 3 at second load 5 at third load 7 ... 9 ... 2 at first load 6 at second load 10 at third load 14 ... 18 ... -- Edit bug report at https://bugs.php.net/bug.php?id=61191&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=61191&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=61191&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=61191&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=61191&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=61191&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=61191&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=61191&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=61191&r=needscript Try newer version: https://bugs.php.net/fix.php?id=61191&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=61191&r=support Expected behavior: https://bugs.php.net/fix.php?id=61191&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=61191&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=61191&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=61191&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=61191&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=61191&r=dst IIS Stability: https://bugs.php.net/fix.php?id=61191&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=61191&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=61191&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=61191&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=61191&r=mysqlcfg