cvs: pear /PECL/session_pgsql session_pgsql.c session_pgsql.h
| From: | Yasuo Ohgaki | Date: | Mon, 21 Jan 2002 15:43:32 +0000 |
| Subject: | cvs: pear /PECL/session_pgsql session_pgsql.c session_pgsql.h | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-2043@lists.php.net to get a copy of this message | ||
yohgaki Mon Jan 21 10:43:32 2002 EDT
Modified files:
/pear/PECL/session_pgsql session_pgsql.c session_pgsql.h
Log:
Added work in progress note just in case someone care about.
Index: pear/PECL/session_pgsql/session_pgsql.c
diff -u pear/PECL/session_pgsql/session_pgsql.c:1.12 pear/PECL/session_pgsql/session_pgsql.c:1.13
--- pear/PECL/session_pgsql/session_pgsql.c:1.12 Mon Jan 14 22:21:04 2002
+++ pear/PECL/session_pgsql/session_pgsql.c Mon Jan 21 10:43:31 2002
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: session_pgsql.c,v 1.12 2002/01/15 03:21:04 yohgaki Exp $ */
+/* $Id: session_pgsql.c,v 1.13 2002/01/21 15:43:31 yohgaki Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -52,6 +52,7 @@
function_entry ps_pgsql_functions[] = {
PHP_FE(session_pgsql_status, NULL)
+ PHP_FE(session_pgsql_info, NULL)
PHP_FE(session_pgsql_add_error, NULL)
PHP_FE(session_pgsql_get_error, NULL)
{ NULL, NULL, NULL }
@@ -59,6 +60,7 @@
static PHP_INI_MH(OnUpdate_ps_pgsql_db)
{
+ /* FIXME: support multiple servers */
PS_PGSQL(db) = new_value;
PS_PGSQL(connstr)[0] = new_value;
PS_PGSQL(servers) = 1;
@@ -68,11 +70,13 @@
static PHP_INI_MH(OnUpdate_ps_pgsql_failorver)
{
+ /* FIXME: support failover */
return SUCCESS;
}
static PHP_INI_MH(OnUpdate_ps_pgsql_loadbalance)
{
+ /* FIXME: support loadbalance */
return SUCCESS;
}
@@ -534,6 +538,14 @@
/* {{{ proto int session_pgsql_status(void)
Returns current pgsql save handler status */
PHP_FUNCTION(session_pgsql_status)
+{
+
+}
+/* }}} */
+
+/* {{{ proto int session_pgsql_status(void)
+ Returns current session info */
+PHP_FUNCTION(session_pgsql_info)
{
}
Index: pear/PECL/session_pgsql/session_pgsql.h
diff -u pear/PECL/session_pgsql/session_pgsql.h:1.6 pear/PECL/session_pgsql/session_pgsql.h:1.7
--- pear/PECL/session_pgsql/session_pgsql.h:1.6 Mon Jan 14 22:21:04 2002
+++ pear/PECL/session_pgsql/session_pgsql.h Mon Jan 21 10:43:31 2002
@@ -51,6 +51,7 @@
int sess_new;
int sess_del;
int sess_cnt;
+ /* FIXME: gc related vars must be shared mem :) */
int gc_interval;
time_t last_gc;
int maxlifetime;