cvs: php-src /ext/pgsql pgsql.c

From: Date: Thu, 29 Jan 2004 02:54:30 +0000
Subject: cvs: php-src /ext/pgsql pgsql.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-25937@lists.php.net to get a copy of this message
iliaa Wed Jan 28 21:54:30 2004 EDT Modified files: /php-src/ext/pgsql pgsql.c Log: Fixed bug #27007 (missing connection closure when connect fails in pgsql). http://cvs.php.net/diff.php/php-src/ext/pgsql/pgsql.c?r1=1.303&r2=1.304&ty=u Index: php-src/ext/pgsql/pgsql.c diff -u php-src/ext/pgsql/pgsql.c:1.303 php-src/ext/pgsql/pgsql.c:1.304 --- php-src/ext/pgsql/pgsql.c:1.303 Sun Jan 11 16:18:19 2004 +++ php-src/ext/pgsql/pgsql.c Wed Jan 28 21:54:30 2004 @@ -19,7 +19,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: pgsql.c,v 1.303 2004/01/11 21:18:19 iliaa Exp $ */ +/* $Id: pgsql.c,v 1.304 2004/01/29 02:54:30 iliaa Exp $ */ #include <stdlib.h> @@ -694,6 +694,9 @@ } if (pgsql==NULL || PQstatus(pgsql)==CONNECTION_BAD) { PHP_PQ_ERROR("Unable to connect to PostgreSQL server: %s", pgsql); + if (pgsql) { + PQfinish(pgsql); + } goto err; }

« previous php.cvs (#25937) next »