Bug #16466 Updated: problem with pg_host()

From: Date: Sun, 07 Apr 2002 00:12:33 +0000
Subject: Bug #16466 Updated: problem with pg_host()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-4231@lists.php.net to get a copy of this message
ID: 16466 Updated by: yohgaki@php.net Reported By: ruivilela@hotmail.com -Status: Open +Status: Feedback Bug Type: PostgreSQL related Operating System: Win2000 PHP Version: 4.1.1 New Comment: I don't see any error on my linux. It may be Windows thing. Could you paste error message? (when you report, could you paste error, since developer may not see the same error) Previous Comments: ------------------------------------------------------------------------ [2002-04-06 14:18:12] ruivilela@hotmail.com This script give the same error on both of my web servers (iis,apache) Script: <?php $db_handle = pg_connect("dbname=ensite2001 hostaddr=100.100.0.2 user=rvilela password=xxxxxx"); if ($db_handle) echo "Connection attempt succeeded.<br>\n"; else echo "Connection attempt failed.<br>\n"; echo "<h1>Connection Information</h1>"; echo "Database name: " . pg_dbname($db_handle) . "<br>\n"; echo "Hostname: " . pg_host($db_handle) . "<br>\n"; //using this function crash php.exe echo "Options: " . pg_options($db_handle) . "<br>\n"; echo "Port: " . pg_port($db_handle) . "<br>\n"; echo "TTY name: " . pg_tty($db_handle) . "<br>\n"; pg_freeresult($result); pg_close($db_handle); ?> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=16466&edit=1

« previous php.bugs (#4231) next »