Re: PHP4 problems

2002-06-25 Thread Hakan Kuecuekyilmaz
Hi,

after setting the parameters like Matt said, session works on
sparc again, but apache keeps crashing all the time. so
this is not a real workaraound.

regards

On Sun, 2002-06-23 at 17:52, matt toups wrote:
 this sounds like a problem I had with php4 on sparc.
 (README.debian does not the problems with php4 sessions
 on big endian systems)
 
 I believe this worked around it for me:
 
 in php.ini, change session.save_handler to:
 
 session.save_handler = mm
 
 and then from the shell do:
 
 echo 33554432  /proc/sys/kernel/shmmax
 
 (from README.debian) to increase the limit
 on shared memory.
 
 good luck,
 matt
 [EMAIL PROTECTED]
 
 On Wed, Jun 19, 2002 at 04:55:06PM +0200, 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.phpget.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
[EMAIL PROTECTED]  |  [EMAIL PROTECTED]  |   [EMAIL PROTECTED]



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: PHP4 problems

2002-06-24 Thread Fredrik Ax
On Wed, Jun 19, 2002 at 05:46:49PM +0200, Hakan Kuecuekyilmaz wrote:

 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 ?

Already done (Bug #17622) :-)

brgds,
/frax


pgp07zdX6Obip.pgp
Description: PGP signature


Re: PHP4 problems

2002-06-24 Thread Fredrik Ax
On Sun, Jun 23, 2002 at 11:52:10AM -0400, matt toups wrote:

 this sounds like a problem I had with php4 on sparc.
 (README.debian does not the problems with php4 sessions
 on big endian systems)
 
 I believe this worked around it for me:
 
 in php.ini, change session.save_handler to:
 
 session.save_handler = mm

I'll try this, thx!


 and then from the shell do:
 
 echo 33554432  /proc/sys/kernel/shmmax

I already do this at boot timje.


Thanks,
/frax


pgpzvDicize0x.pgp
Description: PGP signature


Re: PHP4 problems

2002-06-24 Thread Hakan Kuecuekyilmaz
Hi,

thanks, this worked for me :-)


bye


On Sun, 2002-06-23 at 17:52, matt toups wrote:
 this sounds like a problem I had with php4 on sparc.
 (README.debian does not the problems with php4 sessions
 on big endian systems)
 
 I believe this worked around it for me:
 
 in php.ini, change session.save_handler to:
 
 session.save_handler = mm
 
 and then from the shell do:
 
 echo 33554432  /proc/sys/kernel/shmmax
 
 (from README.debian) to increase the limit
 on shared memory.
 
 good luck,
 matt
 [EMAIL PROTECTED]
 
 On Wed, Jun 19, 2002 at 04:55:06PM +0200, 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.phpget.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
[EMAIL PROTECTED]  |  [EMAIL PROTECTED]  |   [EMAIL PROTECTED]



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



PHP4 problems

2002-06-19 Thread Fredrik Ax
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.phpget.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

pgp1muZpsUR58.pgp
Description: PGP signature