php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11728 (null) given instead of actual error message
Submitted: 2001-06-27 04:39 UTC Modified: 2001-06-28 23:10 UTC
From: cgi at harrison dot org Assigned:
Status: Closed Package: PostgreSQL related
PHP Version: 4.0.6 OS: Linux 2.2.19
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: cgi at harrison dot org
New email:
PHP Version: OS:

 

 [2001-06-27 04:39 UTC] cgi at harrison dot org
As of PHP 4.0.6 detailed errors concerning PostgreSQL are not being given, instead (null) is shown.

For instance 4.0.5 will show:
Unable to connect to PostgreSQL server: Password authentication failed for user 'foouser'

4.0.6 currently shows:
Unable to connect to PostgreSQL server: (null)

I can give more detailed info/specs if needed.

Thanks!

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-06-27 04:43 UTC] cgi at harrison dot org
Not sure if this is important but I'm retrieving the error from the $php_errormsg variable.
 [2001-06-27 05:09 UTC] cgi at harrison dot org
Also, seems to only happen when using persistant connections.  Non-persistant connections will show the errors correctly.
 [2001-06-27 11:48 UTC] sniper@php.net
Could you please include shortest possible script
to reproduce this?

--Jani

 [2001-06-28 04:13 UTC] cgi at harrison dot org
Two examples:
<?PHP
$link_id = pg_pconnect ("host='localhost' user='root' password='foo'") or print ($php_errormsg);
$link_id = pg_connect ("host='localhost' user='root' password='foo'") or print ($php_errormsg);
?>
 [2001-06-28 23:10 UTC] sniper@php.net
Fixed in CVS. Fix will be in PHP 4.0.7.

--Jani

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed May 07 19:01:32 2025 UTC