ID:               16466
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Analyzed
+Status:           Suspended
 Bug Type:         PostgreSQL related
 Operating System: Win2000
 PHP Version:      4.1.1
 New Comment:

Oops. This should be libpq or pgsql problem.
I cannot fix it. 

BTW, what PostgreSQL version are you using?


Previous Comments:
------------------------------------------------------------------------

[2002-04-23 01:40:42] [EMAIL PROTECTED]

It appears to connetion string parse problem when there is invalid
value(s) is in it.

There is no "hostaddr" parameter. Use "host".



------------------------------------------------------------------------

[2002-04-07 06:24:39] [EMAIL PROTECTED]

It apears on windows 2000 a typical dialog box, reporting :
php.exe - Application Error

The instruction at "0x00b929a5" referenced memory at "0x0000000". The
memory could not be read.
With the option to close the application.

the web browser gives a cgi error after that.

i found the problem is on the second line with the hostaddr, if i use
only host=100.100.0.2 it work fine.

------------------------------------------------------------------------

[2002-04-06 19:12:33] [EMAIL PROTECTED]

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)

------------------------------------------------------------------------

[2002-04-06 14:18:12] [EMAIL PROTECTED]

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

Reply via email to