[srm-cvs] CVS Update: - Disable setting the session key for now, for some reason it doesn't work

From: <d.rethans[@]jdimedia.nl>
Date: Fri Apr 04 2003 - 09:35:27 CEST

Date: Fri Apr 4 09:35:26 CEST 2003
User: Derick Rethans
Directory: php_srm

Log Message:
 [0.05]
 - Disable setting the session key for now, for some reason it doesn't work
   anymore.
 
Modified files:
           php_srm/srm.c (version: 1.46)

[FILE: /php_srm/srm.c]

--- php_srm/srm.c:1.45 Wed Mar 19 02:57:02 2003 GMT
+++ php_srm/srm.c Fri Apr 04 05:35:26 2003 GMT
@@ -18,7 +18,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: cvstemp,v 1.45 2003/03/19 03:57:02 derick Exp $ */
+/* $Id: cvstemp,v 1.46 2003/04/04 07:35:26 derick Exp $ */
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -802,7 +802,7 @@
         int ret;
 
         /* Start session automatically. */
- php_session_start(TSRMLS_C);
+// php_session_start(TSRMLS_C);
 
         /* Set defaults */
         hostinfo.host = NULL;
@@ -822,7 +822,7 @@
         } else {
                 hostinfo.port = port;
         }
-
+#if 0
         /* If there is no session started, abort the connect */
         if (PS(id) == NULL) {
                 php_error (E_ERROR,
@@ -832,9 +832,9 @@
         }
 
         /* Allocte connect_data struct, and copy the PHP SID */
- connect_data = ecalloc (sizeof (connect_data_t), 1);
         memcpy (connect_data->sess_key, PS(id), 32);
-
+#endif
+ connect_data = ecalloc (sizeof (connect_data_t), 1);
         sret_val = srm_connect (hostinfo, 0, 0, connect_data);
 
         if (SRM_IS_ERROR (sret_val)) {
Received on Fri Apr 4 09:35:31 2003

This archive was generated by hypermail 2.1.8 : Tue Jan 06 2009 - 03:00:03 CET