From: [EMAIL PROTECTED] Operating system: Windows 2000 PHP version: 4.2.3 PHP Bug Type: Class/Object related Bug description: Session variable getting mysteriously set
When my code does the following in sequence: 1) $_SESSION['League'] = 1; /* or any other number */ 2) unset($_SESSION['League']); 3) $League = new AnyObject(...); The variable $_SESSION['League'] gets set to the contents of "AnyObject". This doesn't occur if the Session variable had never been set/unset, nor does it occur when the Session variable has an existing value in it when statement (3) occurs. Addtionally, this assignment doesn't occur immediately at the time that statement (3) is executed. It is somehow delayed until after the script completes. It's only when I go on to execute another script when I encounter the "mystery" assignment. I haven't tried this with names other than 'League', but common sense suggests this is likely a generic problem independant of the specific name I happened to use. FYI, I'm running Apache version 1.3, the latest stable release for Windows. My PHP configuration is generic, with the exception of including the module(s) required to do XML/XSLT transforms. -- Edit bug report at http://bugs.php.net/?id=20709&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=20709&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=20709&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=20709&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=20709&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=20709&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=20709&r=support Expected behavior: http://bugs.php.net/fix.php?id=20709&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=20709&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=20709&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=20709&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20709&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=20709&r=dst IIS Stability: http://bugs.php.net/fix.php?id=20709&r=isapi