PHP 4.0 Bug #7333 Updated: Connection fault in circled query

From: Date: Tue, 13 Feb 2001 17:09:51 +0000
Subject: PHP 4.0 Bug #7333 Updated: Connection fault in circled query
Groups: php.dev 
Request: Send a blank email to php-dev+get-46492@lists.php.net to get a copy of this message
ID: 7333 Updated by: thies Reported By: wangii@21cn.com Old-Status: Open Status: Closed Bug Type: PostgreSQL related Assigned To: Comments: believed to be fixed in CVS Previous Comments: --------------------------------------------------------------------------- [2000-10-20 04:44:38] wangii@21cn.com And so it does in postgressql 7.0.2. --------------------------------------------------------------------------- [2000-10-19 03:57:37] wangii@21cn.com In order to use posgressql6.5.1,i designed a simple function like this: function sim() {$conn=pg_connect($connoptions); $result=pg_result($conn,"...."); .... pg_freeresult($result); pg_close($conn);} when i use a for() circle to use the function, there's problem. each first time use the funtion, it's ok, but the sencond time, it goes wronglike this: Warning: 1 is not a valid PostgreSQL link resource in .... on line ... and the third time ,It runs well.and the fourth time, mistakes happened again. and so on. I've track the $conn, the resource id are:#1,#1,#7.... When i turned to mysql, thereis no problem. Sorry for my poor english. Regards --------------------------------------------------------------------------- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=7333&edit=2

« previous php.dev (#46492) next »