#42398 [NEW]: pg_(p)connect produces uninformative error messages
| From: | webmaster at touchingvirus dot net | Date: | Thu, 23 Aug 2007 13:45:39 +0000 |
| Subject: | #42398 [NEW]: pg_(p)connect produces uninformative error messages | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-116548@lists.php.net to get a copy of this message | ||
From: webmaster at touchingvirus dot net
Operating system: Windows
PHP version: 5.2.3
PHP Bug Type: Feature/Change Request
Bug description: pg_(p)connect produces uninformative error messages
Description:
------------
When connecting to a pgSQL server (I use 8.2) with a wrong username,
password or port in the connection string, the error given is really
uninformative to the user and actually suggests a problem with the
postgreSQL server:
"Unable to connect to PostgreSQL server: server closed the connection
unexpectedly This probably means the server terminated abnormally before or
while processing the request."
The server didn't terminate & the connection was refused/aborted
Expected result:
----------------
To be honest, I expected an error that was similar to that of mySQL -
though I know that is because mySQL actually produces good error messages
=)
e.g.
Access denied for: root@localhost (Using Password: YES)
The psql binary errors with the expect errors like:
psql: FATAL: password authentication failed for user "root"
--
Edit bug report at http://bugs.php.net/?id=42398&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=42398&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=42398&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=42398&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=42398&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=42398&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=42398&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=42398&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=42398&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=42398&r=support
Expected behavior: http://bugs.php.net/fix.php?id=42398&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=42398&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=42398&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=42398&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42398&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=42398&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=42398&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=42398&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=42398&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=42398&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=42398&r=mysqlcfg