|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-10-02 01:18 UTC] sas@php.net
[2002-10-02 02:43 UTC] frax at axnet dot nu
[2002-10-02 06:18 UTC] sniper@php.net
[2002-10-18 01:00 UTC] php-bugs at lists dot php dot net
[2003-01-06 23:39 UTC] csmall at enc dot com dot au
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 17:00:01 2025 UTC |
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.