PHP 4.0 Bug #5349: when i work on functional equations, return Resouce ID is anomalos!

From: Date: Tue, 04 Jul 2000 02:12:39 +0000
Subject: PHP 4.0 Bug #5349: when i work on functional equations, return Resouce ID is anomalos!
Groups: php.dev 
Request: Send a blank email to php-dev+get-23259@lists.php.net to get a copy of this message
From: gowill@chollian.net Operating system: linux2.2.16 PHP version: 4.0.1pl2 PHP Bug Type: PostgreSQL related Bug description: when i work on functional equations, return Resouce ID is anomalos! When i practice "pg_connect()", Resouce ID is unmethodical, and if i maintain to operate these equations, same Resource ID will continuously return. And because of that, the kind of message is on the screen as below, "Warning: 1 is not a valid PostgreSQL link resource in /home/gowill/public_html/test.php on line 19" I'm sending you some of my testing source. <html> <head></head> <body> <? //##### DB open #1 #### $dbconn = pg_connect("localhost","5432","","","ulsantoday"); if (!$dbconn) { echo("DB error...... #1".$dbconn."");} else { echo("DB ok...... #1".$dbconn.""); } $result = pg_exec($dbconn, "select * from section where sec_code = 'a'"); pg_close($dbconn); //##### DB open #2 #### $dbconn = pg_connect("localhost","5432","","","ulsantoday"); if (!$dbconn) { echo("DB error...... #2".$dbconn."");} else { echo("DB ok...... #2".$dbconn.""); } $result = pg_exec($dbconn, "select * from section where sec_code = 'a'"); pg_close($dbconn); //##### DB open #3 #### $dbconn = pg_connect("localhost","5432","","","ulsantoday"); if (!$dbconn) { echo("DB error...... #3".$dbconn."");} else { echo("DB ok...... #3".$dbconn.""); } $result = pg_exec($dbconn, "select * from section where sec_code = 'a'"); pg_close($dbconn); /* //### for loop for($i=6; $i<9; $i++) { $dbconn = pg_connect("localhost","5432","","","ulsantoday"); if (!$dbconn) { echo("DB error...... #".$i.$dbconn."");} else { echo("DB ok...... #".$i.$dbconn.""); } $result = pg_exec($dbconn, "select * from section where sec_code = 'a'"); pg_close($dbconn); } */ </body> </html> I know you are busy and all. But it will be really kind of you if you take a look at "pg_connect()". Thank you.

« previous php.dev (#23259) next »