ID: 15282 Updated by: yohgaki Reported By: [EMAIL PROTECTED] Old Status: Open Status: Assigned Bug Type: PostgreSQL related Operating System: Solaris 2.8 PHP Version: 4.1.1 Old Assigned To: Assigned To: yohgaki New Comment:
Could you take a look at web server error log? Do you have anything related? (segfault, etc) Could you run iPlanet under gdb? (to see if it is exting or segfaulting) Do you quote connection string? Do you get any error message from pg_connect? Do you have multiple libpq? (find / -name "libpq*") Do you have the same problem with snapshot? http://snaps.php.net/ Attach *complete* script even if it is a few lines next time. Previous Comments: ------------------------------------------------------------------------ [2002-01-29 13:56:28] [EMAIL PROTECTED] When attempting to connecting to a remote database using pg_connect(host=dbhost user=dbuser dbname=dbname), the operation fails. I can connect using psql from the command line or through a perl script as any user. Running php as a CGI binary also works. However, when running as an nsapi, the connection fails. A quick look using snoop shows that the failed connection appears to be sending SYN/RST instead of SYN/ACK (which is what is seen during a successful connection). Here's my system details: OS: Solaris 2.8 Web Server: iPlanet 4.1 PHP version: php 4.1.1 PHP configure options: ./configure --with-nsapi=/usr/local/iws41 \ --with-pgsql=/usr/local/pgsql \ --enable-libgcc PostgreSQL version: 7.0.3 For what it's worth, connections to a mysql database between the same systems works without a hitch. Any suggestions would be appreciated. ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=15282&edit=1 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]