[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: PHP4 problems



hi, 

I have the same problem here on my ultrasparc10, would you mind
to file a bug report at bugs.php.net and write an email to
php-dev@lists.php.net ?

A couple of months ago, somebody posted a workaround script for
this problem, but I never tried it.

regards
On Wed, 2002-06-19 at 16:55, Fredrik Ax wrote:
> Configuration:
> --------------
> Architecture: sparc (sun4m)
> Debian GNU Linux 3.0 (woody)
> Kernel: 2.4.18
> Apache: 1.3.24 (apache 1.3.24-3)
> PHP: 4.1.2 (php4 4.1.2-4)
> 
> Problem:
> --------
> Session handling in PHP doesnt seem to work (with cookies at least).
> 
> More specifically, session_register - session_is_registered doesn't
> work for global variables even with "register_globals = on" in the
> php.ini.
> 
> The set.php - get.php scripts below 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.4.18 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' but on the sparc 'failed' ... :-(
> 
> This makes it impossible to use for instance SquirrelMail
> ... :-(
> 
> Anybody had the same problem or got any suggestion?
> 
> brgds,
> /frax
-- 
Hakan Kuecuekyilmaz, University of Applied Sciences Esslingen, Germany
<hakan@php.net>  |  <hakan@lisas.de>  |   <hakan.kuecuekyilmaz@web.de>



-- 
To UNSUBSCRIBE, email to debian-sparc-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: