ID: 25963 Updated by: [EMAIL PROTECTED] Reported By: edechaux at irci dot fr -Status: Assigned +Status: Closed Bug Type: PostgreSQL related Operating System: * PHP Version: 4.3.3 Assigned To: helly New Comment:
This bug has been fixed in CVS. In case this was a PHP problem, snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. In case this was a documentation problem, the fix will show up soon at http://www.php.net/manual/. In case this was a PHP.net website problem, the change will show up on the PHP.net site and on the mirror sites in short time. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2003-11-17 22:43:32] [EMAIL PROTECTED] Marcus, can you MFH now..? ------------------------------------------------------------------------ [2003-10-25 08:48:23] [EMAIL PROTECTED] Is already fixed in PHP 5. Fix will be committed for 4.3.5 or whatever comes next, too. For 4.3.3 we are to far in the release process. ------------------------------------------------------------------------ [2003-10-24 09:35:53] edechaux at irci dot fr I tried with the lastest CVS and there is no changes. Here is a sample code : ----file toto.php---- <? if (! pg_connect ('blablabla')) { echo '{' . $php_errormsg . '}'; } ?> -------- I execute 'php toto.php'. It displays : {Unable to connect to PostgreSQL server: missing "=" after "blablabla" in connection info string .} As you can see there is a newline character between 'string' and '.'. This newline character mess up the html code if you d'ont remove it... It still works, but it break your html code format :p ------------------------------------------------------------------------ [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