#32168 [Opn->Bgs]: A recovering of variable while using reference to $_SESSION

From: Date: Mon, 14 Mar 2005 20:55:59 +0000
Subject: #32168 [Opn->Bgs]: A recovering of variable while using reference to $_SESSION
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-75324@lists.php.net to get a copy of this message
ID: 32168 Updated by: sniper@php.net Reported By: KRomas at goldentele dot com -Status: Open +Status: Bogus Bug Type: Session related Operating System: Linux PHP Version: 4CVS-2005-03-09 New Comment: I'm getting the expected result with Linux. Check your php.ini settings, the ones important are: register_globals=off, and all the session.bug_compat* Previous Comments: ------------------------------------------------------------------------ [2005-03-11 08:23:36] KRomas at goldentele dot com Have you the same result array(1) { ["a"]=> &array(1) { ["b"]=> int(1) } } on Linux-version of PHP? ------------------------------------------------------------------------ [2005-03-10 10:29:12] KRomas at goldentele dot com Yes. I have downloaded php4-win32-STABLE-latest.zip, completely removed d:\Program Files\php\, got message "The requested URL /php/php.exe/3.php was not found on this server", extracted archive to d:\Program Files\php\, executed script and got right response in contrast to Linux-version. ---------- phpinfo: PHP Version 4.3.11-dev System Windows NT 5.0 build 2195 Zend Engine v1.3.0 SERVER_SOFTWARE Apache/1.3.33 (Win32) ------------------------------------------------------------------------ [2005-03-09 22:07:43] sniper@php.net Are you sure you're trying same PHP version in Windows? (before installing the snapshot delete EVERY file even remotely related to PHP..) ------------------------------------------------------------------------ [2005-03-09 08:31:49] KRomas at goldentele dot com For now PHP Version is 4.3.11-dev (Linux) and there is the same error: array(1) { ["a"]=> &array(1) { ["b"]=> int(1) } } Win-version work perfectly however: array(1) { ["a"]=> NULL } ------------------------------------------------------------------------ [2005-03-07 00:40:28] sniper@php.net Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/32168 -- Edit this bug report at http://bugs.php.net/?id=32168&edit=1

« previous php.bugs (#75324) next »