#25963 [Opn->Fbk]: postgres error message include \n characters
| From: | helly@php.net | Date: | Thu, 23 Oct 2003 18:02:03 +0000 |
| Subject: | #25963 [Opn->Fbk]: postgres error message include \n characters | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-49401@lists.php.net to get a copy of this message | ||
ID: 25963
Updated by: helly@php.net
Reported By: edechaux at irci dot fr
-Status: Open
+Status: Feedback
Bug Type: PostgreSQL related
Operating System: Linux 2.4.21
PHP Version: 4.3.3
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
If that doesn't help please send a short example.
Previous Comments:
------------------------------------------------------------------------
[2003-10-23 05:50:09] edechaux at irci dot fr
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 this bug report at http://bugs.php.net/?id=25963&edit=1