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

From: Date: Fri, 20 Oct 2000 08:44:38 +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-35629@lists.php.net to get a copy of this message
ID: 7333 User Update by: wangii@21cn.com Status: Open Bug Type: PostgreSQL related Description: Connection fault in circled query And so it does in postgressql 7.0.2. Previous Comments: --------------------------------------------------------------------------- [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 --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=7333

« previous php.dev (#35629) next »