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

From: Date: Thu, 17 Mar 2005 12:28:53 +0000
Subject: #32168 [Bgs]: A recovering of variable while using reference to $_SESSION
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-75428@lists.php.net to get a copy of this message
ID: 32168 User updated by: KRomas at goldentele dot com Reported By: KRomas at goldentele dot com Status: Bogus Bug Type: Session related Operating System: Linux PHP Version: 4CVS-2005-03-09 New Comment: There is register_globals=on on my system. I understand this as value has recovered from global variable. But why recovering not complete if I replace $val = & $_SESSION['a']; on $val = $_SESSION['a']; ? Previous Comments: ------------------------------------------------------------------------ [2005-03-14 21:55:58] sniper@php.net 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* ------------------------------------------------------------------------ [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 } ------------------------------------------------------------------------ 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 (#75428) next »