cvs: pear /PECL/session_pgsql session_pgsql.c

From: Date: Mon, 07 Jan 2002 08:55:13 +0000
Subject: cvs: pear /PECL/session_pgsql session_pgsql.c
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-1864@lists.php.net to get a copy of this message
yohgaki Mon Jan 7 03:55:13 2002 EDT Modified files: /pear/PECL/session_pgsql session_pgsql.c Log: Avoid useless CLOSE calls. Index: pear/PECL/session_pgsql/session_pgsql.c diff -u pear/PECL/session_pgsql/session_pgsql.c:1.6 pear/PECL/session_pgsql/session_pgsql.c:1.7 --- pear/PECL/session_pgsql/session_pgsql.c:1.6 Mon Jan 7 01:36:57 2002 +++ pear/PECL/session_pgsql/session_pgsql.c Mon Jan 7 03:55:13 2002 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: session_pgsql.c,v 1.6 2002/01/07 06:36:57 yohgaki Exp $ */ +/* $Id: session_pgsql.c,v 1.7 2002/01/07 08:55:13 yohgaki Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -74,6 +74,7 @@ static int php_ps_pgsql_connect(const char *conn_str) { + ELOG("php_pg_pgsql_connect() is called"); if (PQstatus(PS_PGSQL(pgsql_link)) == CONNECTION_OK) { return SUCCESS; } @@ -206,6 +207,7 @@ int ret = SUCCESS; ELOG("CLOSE Called"); + *mod_data = (void *)0; /* mod_data should be set to NULL to avoid additional close call */ if (PS_PGSQL(pgsql_link) == NULL || PQstatus(PS_PGSQL(pgsql_link)) == CONNECTION_BAD) { php_error(E_NOTICE,"Failed at CLOSE. Bad connection"); return FAILURE;

« previous php.pear.cvs (#1864) next »