#17622 [Opn->Fbk]: session_register-session_is_registered does'nt work with register_globals=on
ID: 17622
Updated by: sniper@php.net
Reported By: frax@axnet.nu
-Status: Open
+Status: Feedback
Bug Type: Session related
Operating System: Debian GNU/Linux 3.0,kern2.2.17
PHP Version: 4.1.2
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php4-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2002-10-02 02:43:54] frax@axnet.nu
Nope, it's an old Sparc Station 5 (sun4m).
It's now upgraded with a 2.4.18 kernel ... same result.
------------------------------------------------------------------------
[2002-10-02 01:18:53] sas@php.net
Does your sparc installation use a 64bit data model?
------------------------------------------------------------------------
[2002-06-06 05:39:39] frax@axnet.nu
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 this bug report at http://bugs.php.net/?id=17622&edit=1
Thread (6 messages)