dbTalk Databases Forums  

Segmentation Fault using PHP code

comp.databases.postgresql.general comp.databases.postgresql.general


Discuss Segmentation Fault using PHP code in the comp.databases.postgresql.general forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jonathan Villa
 
Posts: n/a

Default Segmentation Fault using PHP code - 10-19-2004 , 02:27 PM






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.


---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo (AT) postgresql (DOT) org)


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.