List Info

Thread: postgresql problems




postgresql problems
user name
2006-09-27 22:58:35
I am getting the same error that Mugur got a little while
ago, but cant
seem to find the cause.  The following script produces a
segmentation
fault if I use the postgresql config, but works fine with
the mysql
config.  I've checked that the pgsql.so extension is
installed.  The
database exists, the user exists, the password is correct.

<?php
require_once('DB.php');

$m = array("username" => "test",
"password" => "test",
"hostspec" =>
"localhost", "phptype" =>
"pgsql", "database" =>
"LiveSupport-paul");
//$m = array("username" => "root",
"password" => "",
"hostspec" =>
"localhost", "phptype" =>
"mysql", "database" =>
"campsite");

print_r($m);
$dbc = DB::connect($m);
if (PEAR::isError($dbc)) {
	die($dbc->getMessage());
}
$dbc->disconnect();
?>

------------------------------------------------------------
---
Output:
------------------------------------------------------------
---
Array
(
    [username] => test
    [password] => test
    [hostspec] => localhost
    [phptype] => pgsql
    [database] => LiveSupport-paul
)
Segmentation fault
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )