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