Bug #11728 Updated: (null) given instead of actual error message

From: Date: Thu, 28 Jun 2001 08:13:50 +0000
Subject: Bug #11728 Updated: (null) given instead of actual error message
Groups: php.dev 
Request: Send a blank email to php-dev+get-58300@lists.php.net to get a copy of this message
ID: 11728 User Update by: cgi@harrison.org Old-Status: Feedback Status: Open Bug Type: PostgreSQL related Operating system: Linux 2.2.19 PHP Version: 4.0.6 Description: (null) given instead of actual error message 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); ?> Previous Comments: --------------------------------------------------------------------------- [2001-06-27 11:48:34] sniper@php.net Could you please include shortest possible script to reproduce this? --Jani --------------------------------------------------------------------------- [2001-06-27 05:09:21] cgi@harrison.org Also, seems to only happen when using persistant connections. Non-persistant connections will show the errors correctly. --------------------------------------------------------------------------- [2001-06-27 04:43:09] cgi@harrison.org Not sure if this is important but I'm retrieving the error from the $php_errormsg variable. --------------------------------------------------------------------------- [2001-06-27 04:39:40] cgi@harrison.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! --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=11728

« previous php.dev (#58300) next »