ID: 14826 Updated by: yohgaki Old Summary: 4.1.0 on powerpc doesn't save session variables Reported By: [EMAIL PROTECTED] Old Status: Open Status: Feedback Bug Type: Session related Operating System: Debian Linux 2.2.19 ppc PHP Version: 4.1.0 New Comment:
Your httpd may be segfaulting. Run httpd under gdb see if you get segfault or any. Previous Comments: ------------------------------------------------------------------------ [2002-01-10 11:18:02] [EMAIL PROTECTED] umm dosen't seems this here... teixi@satellite:~$ cat /etc/php4/apache/php.ini | grep -i save.path session.save_path = /tmp teixi@satellite:~$ ls -lad /tmp drwxrwxrwt 6 root root 1024 Jan 10 15:52 /tmp teixi@satellite:~$ uname -a Linux satellite 2.2.19 #1 Sat Apr 14 23:20:24 CDT 2001 ppc unknown ------------------------------------------------------------------------ [2002-01-09 21:39:11] [EMAIL PROTECTED] What about permission of save_path? Is it world writable? ------------------------------------------------------------------------ [2002-01-09 05:28:09] [EMAIL PROTECTED] yep session related paths and setups are the same on both installs but just ppc doesnt' works with session vars ------------------------------------------------------------------------ [2002-01-04 12:30:57] [EMAIL PROTECTED] Are you sure the session-related paths in your php.ini are correct? ------------------------------------------------------------------------ [2002-01-03 10:12:03] [EMAIL PROTECTED] 4.1.0 on powerpc doesn't save session variables apache 1.3.22 scripts like this sample doesn't save session varibles, but when run on intel platform with same php.ini, same php and apache versions, it works saving session variables. --------- <?php session_start(); // session variable to store the counter. session_register('counter'); // session variable to store the value when the page was last loaded; // this value is maintained so that difference can be calculated. session_register('timeAtLastLoad'); // current time $timeNow = time(); // increment counter $counter++; // calculate the time lapsed from last visit. $timeLapsed = $timeNow - $timeAtLastLoad; // display appropriate message if($counter > 1) { echo "<b>It's been $timeLapsed seconds since you last viewed this page.</b>"; } else { echo "<b>First time here? Reload this page to see how the session works!</b>"; } $timeAtLastLoad = $timeNow; ?> ------- ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=14826&edit=1 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]