From: edechaux at irci dot fr
Operating system: Linux 2.4.21
PHP version: 4.3.3
PHP Bug Type: PostgreSQL related
Bug description: postgres error message include \n characters

Description:
------------
When a connection to a Postgres database fails, the error message which is
in the $php_errormsg variable ends with the following string : '\n\n.'

The final '.' is quite anoying because you just can't 'trim' the
$php_errormsg, you must 'trim ($php_errormsg, "\n.")' to remove the dot
and the newline characters.


Could it be possible to remove the final dot, or even the final '\n\n.'
string ?


Thanks.



--
Edit bug report at [url]http://bugs.php.net/?id=25963&edit=1[/url]
--
Try a CVS snapshot (php4): [url]http://bugs.php.net/fix.php?id=25963&r=trysnapshot4[/url]
Try a CVS snapshot (php5): [url]http://bugs.php.net/fix.php?id=25963&r=trysnapshot5[/url]
Fixed in CVS: [url]http://bugs.php.net/fix.php?id=25963&r=fixedcvs[/url]
Fixed in release: [url]http://bugs.php.net/fix.php?id=25963&r=alreadyfixed[/url]
Need backtrace: [url]http://bugs.php.net/fix.php?id=25963&r=needtrace[/url]
Try newer version: [url]http://bugs.php.net/fix.php?id=25963&r=oldversion[/url]
Not developer issue: [url]http://bugs.php.net/fix.php?id=25963&r=support[/url]
Expected behavior: [url]http://bugs.php.net/fix.php?id=25963&r=notwrong[/url]
Not enough info: [url]http://bugs.php.net/fix.php?id=25963&r=notenoughinfo[/url]
Submitted twice: [url]http://bugs.php.net/fix.php?id=25963&r=submittedtwice[/url]
register_globals: [url]http://bugs.php.net/fix.php?id=25963&r=globals[/url]
PHP 3 support discontinued: [url]http://bugs.php.net/fix.php?id=25963&r=php3[/url]
Daylight Savings: [url]http://bugs.php.net/fix.php?id=25963&r=dst[/url]
IIS Stability: [url]http://bugs.php.net/fix.php?id=25963&r=isapi[/url]
Install GNU Sed: [url]http://bugs.php.net/fix.php?id=25963&r=gnused[/url]
Floating point limitations: [url]http://bugs.php.net/fix.php?id=25963&r=float[/url]