Thread: Segmentation Fault using PHP code

Segmentation Fault using PHP code

From
"Jonathan Villa"
Date:
I'm trying to add some functionality to an already existing
application...this applications works fine, and uses the PHP function
pg_pconnect to make a persistent connection to the database.  This works
very well.

My part is to make a new non-persistent connection (or whatever), to a
newly created database on the same server.

I simply do

global $sys_dbhost,$sys_dbuser,$sys_dbpasswd,$sys_dbname;

$pg_conn_string = "
user=$sys_dbuser
dbname=$sys_dbname
host=$sys_dbhost
password=$sys_dbpasswd";

$conn = pg_connect($pg_conn_string);

*which is functional PHP code

and in my apache logs I have

[Tue Oct 19 14:11:29 2004] [notice] child pid 28586 exit signal
Segmentation fault (11)

This may seem like a strictly PHP question, but I was just wondering if
perhaps this had anything do with postgres configuration or anything.