PHP 4.0 Bug #7333: Connection fault in circled query
| From: | wangii at 21cn dot com | Date: | Thu, 19 Oct 2000 07:57:37 +0000 |
| Subject: | PHP 4.0 Bug #7333: Connection fault in circled query | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-35494@lists.php.net to get a copy of this message | ||
From: wangii@21cn.com
Operating system: Linux
PHP version: 4.0.3pl1
PHP Bug Type: PostgreSQL related
Bug description: Connection fault in circled query
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
--
Edit Bug report at: http://bugs.php.net/?id=7333&edit=1