ID:               26005
 Updated by:       [EMAIL PROTECTED]
 Reported By:      parsnip11 at hotmail dot com
-Status:           Closed
+Status:           Open
 Bug Type:         Session related
 Operating System: *
 PHP Version:      4CVS-2003-10-31
 New Comment:

We also experience the same error with PHP 4.3.7 with Apache 1.3.31. We
have the following session settings in .htaccess:

<IfModule mod_php4.c>
   php_value session.cache_expire    200000
   php_value session.gc_maxlifetime  200000
   php_value session.cookie_domain   ".weblabor.hu"
   php_value session.cookie_lifetime 2000000
   php_value session.auto_start      0
   php_value session.save_handler    user
   php_value session.cache_limiter   none
</IfModule>

Our session handlers store data in a database, and are set with
session_set_save_handler() in userland code. The error is the exact one
reported by the bug opener.


Previous Comments:
------------------------------------------------------------------------

[2004-07-04 13:25:56] a-n-d-r-a-s at b-a-r-t-h-a-z-i dot hu

I have PHP 4.3.7, and we get this error, running a Drupal 4.4.

------------------------------------------------------------------------

[2004-02-25 13:49:27] [EMAIL PROTECTED]

Get the latest stable CVS snapshot. And don't reopen closed bugs unless
you can still reproduce it with the snapshot..


------------------------------------------------------------------------

[2004-02-25 13:28:20] parsnip11 at hotmail dot com

Is there any way that I can apply this patch to php4isapi.dll?

------------------------------------------------------------------------

[2004-02-24 03:42:35] [EMAIL PROTECTED]

Patch applied. Thanks!


------------------------------------------------------------------------

[2004-02-23 07:11:43] jsnajdr at kerio dot com

This is a patch that stopped crashing for me:

*** php-4.3.4/ext/session/session.c     Wed Oct  8 12:25:39 2003
--- php-4.3.4-n/ext/session/session.c   Tue Dec  9 11:36:24 2003
***************
*** 1543,1548 ****
--- 1543,1556 ----
        }
  }
  
+ static void php_session_init_globals(php_ps_globals *ps_globals
TSRMLS_DC)
+ {
+       ps_globals->id = NULL;
+       ps_globals->session_status = php_session_none;
+       ps_globals->mod_data = NULL;
+       ps_globals->http_session_vars = NULL;
+ }
+ 
  static void php_rinit_session_globals(TSRMLS_D)
  {             
        PS(id) = NULL;
***************
*** 1618,1624 ****
  #ifdef ZTS
        php_ps_globals *ps_globals;
  
!       ts_allocate_id(&ps_globals_id, sizeof(php_ps_globals), NULL, NULL);
        ps_globals = ts_resource(ps_globals_id);
  #endif
  
--- 1626,1632 ----
  #ifdef ZTS
        php_ps_globals *ps_globals;
  
!       ts_allocate_id(&ps_globals_id, sizeof(php_ps_globals),
(ts_allocate_ctor) php_session_init_globals, NULL);
        ps_globals = ts_resource(ps_globals_id);
  #endif

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/26005

-- 
Edit this bug report at http://bugs.php.net/?id=26005&edit=1

Reply via email to