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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 18:01:28 2024 UTC