From: bill dot stevens at hotmail dot com Operating system: WindowsXP/Debian PHP version: 4.3.7 PHP Bug Type: Session related Bug description: session code does not show same behaviour
Description: ------------ using sessions on windows xp/php 4.3.7 and register_globals off does work fine (code below). same script on debian-woody/php 4.3.1 and register_globals off does not read the session data. only register_globals on solves this (same code). session-related config on both machines is the same or changes had no effect. any ideas on config/scripting/stuff welcome :) Reproduce code: --------------- if( $this->useSessions ) { session_start(); // check, whether register globals is enabled if( ini_get( "register_globals" ) ) { session_register( $this->sessionVar ); if( !isset( $GLOBALS[$this->sessionVar] ) ) $GLOBALS[$this->sessionVar] = array(); $this->sessionData = &$GLOBALS[$this->sessionVar]; } // register globals is off, session_register is useless :-( else { if( isset( $_SESSION ) ) { if( !isset( $_SESSION[$this->sessionVar] ) ) $_SESSION[$this->sessionVar] = array(); $this->sessionData = &$_SESSION[$this->sessionVar]; } else { if( !isset( $GLOBALS["HTTP_SESSION_VARS"][$this->sessionVar] ) ) $GLOBALS["HTTP_SESSION_VARS"][$this->sessionVar] = array(); $this->sessionData = &$GLOBALS["HTTP_SESSION_VARS"][$this->sessionVar]; } } } Expected result: ---------------- register session vars. works on windows, does not on debian. Actual result: -------------- no session on debian. -- Edit bug report at http://bugs.php.net/?id=28647&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28647&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28647&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=28647&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=28647&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=28647&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=28647&r=needscript Try newer version: http://bugs.php.net/fix.php?id=28647&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=28647&r=support Expected behavior: http://bugs.php.net/fix.php?id=28647&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=28647&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=28647&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=28647&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28647&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=28647&r=dst IIS Stability: http://bugs.php.net/fix.php?id=28647&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=28647&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=28647&r=float