Bug #17622: session_register-session_is_registered does'nt work with register_globals=on

From: Date: Thu, 06 Jun 2002 09:39:40 +0000
Subject: Bug #17622: session_register-session_is_registered does'nt work with register_globals=on
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-9612@lists.php.net to get a copy of this message
From:             frax@axnet.nu
Operating system: Debian GNU/Linux 3.0,kern2.2.17
PHP version:      4.1.2
PHP Bug Type:     Session related
Bug description:  session_register-session_is_registered does'nt work with register_globals=on

session_register - session_is_registered
doesn't work for global variables with
"register_globals = on" on the sparc arch.

The set.php - get.php scripts at the end of this report
works just fine om my Debian GNU/Linux 3.0, kernel 2.4.18
on i386, but doesnt work on my Debian GNU/Linux 3.0, kernel 2.2.17 on
sparc.

Both machines runs Apache 1.3.24 and PHP 4.1.2 and got identical php.ini
files.

The scripts:
--- set.php ---------------------------------------------
<?php
@session_destroy();
$cookie_params = session_get_cookie_params();
setcookie(session_name());
session_start();
$globvar= true;
session_register ('globvar');
print '<A HREF="get.php">get.php</A>';
?>

--- get.php ---------------------------------------------
<?php
session_start();
if(session_is_registered('globvar')) { 
        print 'ok';
} else {
        print 'failed';
}
?>

---------------------------------------------------------
On the i386 I get ok and on the sparc failed.

-- 
Edit bug report at http://bugs.php.net/?id=17622&edit=1
-- 
Fixed in CVS:        http://bugs.php.net/fix.php?id=17622&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=17622&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=17622&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=17622&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=17622&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=17622&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=17622&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=17622&r=submittedtwice
register_globals:    http://bugs.php.net/fix.php?id=17622&r=globals



Thread (6 messages)

« previous php.bugs (#9612) next »