From:             [EMAIL PROTECTED]
Operating system: Win2000
PHP version:      4.1.1
PHP Bug Type:     PostgreSQL related
Bug description:  problem with pg_host()

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 bug report at http://bugs.php.net/?id=16466&edit=1
-- 
Fixed in CVS:        http://bugs.php.net/fix.php?id=16466&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=16466&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=16466&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=16466&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=16466&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=16466&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=16466&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=16466&r=submittedtwice

Reply via email to