Date: 10/04/00
- Next message: Mike Robinson: "[PHP-DEV] RE: [PHP-QA] RE: [PHP-DEV] 4.0.3RC2"
- Previous message: Sascha Schumann: "[PHP-DEV] Re: [PHP-QA] RE: [PHP-DEV] 4.0.3RC2"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: alex <email protected>
Operating system: linux-glibc21
PHP version: 4.0.2
PHP Bug Type: PostgreSQL related
Bug description: The pg_close function doesn't close the connection.
The script below doesn't remove the database because the second
link is not closed and the postgres will not drop a database if there is a connection using it.
<?php
$id1 = pg_connect("host=cheese port=7655 user=zendtest password=******** dbname=template1");
pg_exec($id1, "CREATE DATABASE zendtest");
pg_close($id1);
$id2 = pg_connect("host=cheese port=7655 user=zendtest password=dnez dbname=zendtest");
pg_close($id2);
$id3 = pg_connect("host=cheese port=7655 user=zendtest password=******** dbname=template1");
pg_exec($id3, "DROP DATABASE zendtest");
pg_close($id3);
?>
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Mike Robinson: "[PHP-DEV] RE: [PHP-QA] RE: [PHP-DEV] 4.0.3RC2"
- Previous message: Sascha Schumann: "[PHP-DEV] Re: [PHP-QA] RE: [PHP-DEV] 4.0.3RC2"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

